tdb2: test: convert (non-invasive) run tests to api tests.
authorRusty Russell <>
Wed, 31 Aug 2011 06:09:16 +0000 (15:39 +0930)
committerRusty Russell <>
Wed, 31 Aug 2011 06:09:16 +0000 (15:39 +0930)
tdb2: test: convert (non-invasive) run tests to api tests.

This reduces compilation time, since these are merely linked with the
pre-built module, rather than recompiling it into the test (which
allows for fancy things like failtest).

This reduces the test compile time down from about 62 seconds to 45
seconds.  Since ccanlint compiles tests three times (once normally,
once with coverage, and once with reduced config.h) this makes a
difference: we go from 780 seconds to 729 seconds.
46 files changed:
ccan/tdb2/test/api-12-store.c [new file with mode: 0644]
ccan/tdb2/test/api-13-delete.c [new file with mode: 0644]
ccan/tdb2/test/api-14-exists.c [new file with mode: 0644]
ccan/tdb2/test/api-16-wipe_all.c [new file with mode: 0644]
ccan/tdb2/test/api-21-parse_record.c [new file with mode: 0644]
ccan/tdb2/test/api-55-transaction.c [new file with mode: 0644]
ccan/tdb2/test/api-80-tdb_fd.c [new file with mode: 0644]
ccan/tdb2/test/api-81-seqnum.c [new file with mode: 0644]
ccan/tdb2/test/api-82-lockattr.c [new file with mode: 0644]
ccan/tdb2/test/api-83-openhook.c [new file with mode: 0644]
ccan/tdb2/test/api-91-get-stats.c [new file with mode: 0644]
ccan/tdb2/test/api-92-get-set-readonly.c [new file with mode: 0644]
ccan/tdb2/test/api-93-repack.c [new file with mode: 0644]
ccan/tdb2/test/api-add-remove-flags.c [new file with mode: 0644]
ccan/tdb2/test/api-check-callback.c [new file with mode: 0644]
ccan/tdb2/test/api-firstkey-nextkey.c [new file with mode: 0644]
ccan/tdb2/test/api-fork-test.c [new file with mode: 0644]
ccan/tdb2/test/api-locktimeout.c [new file with mode: 0644]
ccan/tdb2/test/api-missing-entries.c [new file with mode: 0644]
ccan/tdb2/test/api-open-multiple-times.c [new file with mode: 0644]
ccan/tdb2/test/api-record-expand.c [new file with mode: 0644]
ccan/tdb2/test/api-simple-delete.c [new file with mode: 0644]
ccan/tdb2/test/api-summary.c [new file with mode: 0644]
ccan/tdb2/test/run-12-store.c [deleted file]
ccan/tdb2/test/run-13-delete.c [deleted file]
ccan/tdb2/test/run-14-exists.c [deleted file]
ccan/tdb2/test/run-16-wipe_all.c [deleted file]
ccan/tdb2/test/run-21-parse_record.c [deleted file]
ccan/tdb2/test/run-55-transaction.c [deleted file]
ccan/tdb2/test/run-80-tdb_fd.c [deleted file]
ccan/tdb2/test/run-81-seqnum.c [deleted file]
ccan/tdb2/test/run-82-lockattr.c [deleted file]
ccan/tdb2/test/run-83-openhook.c [deleted file]
ccan/tdb2/test/run-91-get-stats.c [deleted file]
ccan/tdb2/test/run-92-get-set-readonly.c [deleted file]
ccan/tdb2/test/run-93-repack.c [deleted file]
ccan/tdb2/test/run-add-remove-flags.c [deleted file]
ccan/tdb2/test/run-check-callback.c [deleted file]
ccan/tdb2/test/run-firstkey-nextkey.c [deleted file]
ccan/tdb2/test/run-fork-test.c [deleted file]
ccan/tdb2/test/run-locktimeout.c [deleted file]
ccan/tdb2/test/run-missing-entries.c [deleted file]
ccan/tdb2/test/run-open-multiple-times.c [deleted file]
ccan/tdb2/test/run-record-expand.c [deleted file]
ccan/tdb2/test/run-simple-delete.c [deleted file]
ccan/tdb2/test/run-summary.c [deleted file]