serval-dna/tests
Andrew Bettison bacba19dc1 Refactor manifest: specific setter functions
Replace generic rhizome_manifest_set() and rhizome_manifest_set_ll()
with per-field setter functions, eg, rhizome_manifest_set_filesize().
Struct rhizome_manifest elements for all known fields, to replace the
use of rhizome_manifest_get() and rhizome_manifest_get_ll() everywhere:
sender, recipient, service, name, date, bundle_key.

Add boolean validity flags for binary blob types, to avoid having to compare
with many bytes of all-zero to detect presence, eg, has_sender, has_recipient,
has_author, has_bundle_key.  These maintained by the setter functions.

Rename existing manifest struct elements to be the same as their field
names: fileLength -> filesize, journalTail -> tail.

More use of unsigned int, size_t and uint64_t for payload sizes, offsets, byte
counts, etc. especially in rhizome_store.c and meshms.c.  More uniform use of
size_t to dimension memory buffers.  Fix some printf(3) style format strings
for 64-bit correctness on 32-bit systems.  Use new constant RHIZOME_SIZE_UNSET
instead of -1 to indicate unknown dimension, and explicitly assert its absence
before comparisons and arithmetic, for safety.

Replace some 'int' loop variables with 'unsigned' where appropriate.

Fix bugs discovered in MeshMS bundle private/public key generation and
bundle secret key handling for export/extract commands.

Instrument the first MeshMS test case to aid debugging.

New debug config flag: debug.manifest logs all modifications to all manifest
fields by setter functions.

Rename debug config flag: debug.rhizome_bind -> debug.rhizome_sql_bind.
2013-11-04 19:17:49 +10:30
..
testdata Add keyring back-compatibility test case 2013-04-29 15:11:04 +09:30
all Change manifest service to MeshMS2 2013-08-01 11:37:35 +09:30
compatibility Issue #20: remove unique socket names from tests 2013-09-20 14:24:55 +09:30
config Rename config option 'log.stderr' to 'log.console' 2013-04-05 16:55:14 +10:30
directory_service Issue #20: remove unique socket names from tests 2013-09-20 14:24:55 +09:30
dnahelper Disable rhizome when testing dnahelper to reduce IO load 2013-05-29 11:58:06 +09:30
dnaprotocol Replace old routing engine with new link state engine 2013-05-02 14:29:28 +09:30
framework Improve test framework: tfw_cmp_version() 2013-10-14 16:45:56 +10:30
jni Add help / version output jni test 2013-07-09 16:24:47 +09:30
keyring Rename 'id revoke' to 'id relinquish' to match documentation 2013-10-15 14:52:07 +10:30
logging Rename config option 'log.stderr' to 'log.console' 2013-04-05 16:55:14 +10:30
meshms Refactor manifest: specific setter functions 2013-11-04 19:17:49 +10:30
rhizomechannels Add 'debug.rhizome_httpd' config option 2013-10-16 11:23:45 +10:30
rhizomehttp First HTTP RESTful interface tests 2013-10-14 17:46:09 +10:30
rhizomeops Refactor manifest: specific setter functions 2013-11-04 19:17:49 +10:30
rhizomeprotocol Fix bugs in new HTTP server MIME body parsing code 2013-10-28 14:25:16 +10:30
rhizomestress Add 'debug.rhizome_httpd' config option 2013-10-16 11:23:45 +10:30
routing Refactor manifest: specific setter functions 2013-11-04 19:17:49 +10:30
server Issue #20: remove unique socket names from tests 2013-09-20 14:24:55 +09:30