tdb: import unit tests from CCAN into tdb/test/
commit0802791081ba39298aa93f0e6860c3b62800df73
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Feb 2012 17:35:43 +0000 (14 04:05 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Feb 2012 17:35:43 +0000 (14 04:05 +1030)
tree9de98d155090cdb4c6b498e37938890be8514d8b
parent390b9a2dd8447ecd16e3957c02fa886781797733
tdb: import unit tests from CCAN into tdb/test/

I pulled tdb into CCAN as an experiment a while ago; it doesn't belong
there, but it has accumulated some important unit tests.

These are copied from CCAN version init-1486-gc438ec1 with #include "../"
changed to #include "../common/".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
35 files changed:
lib/tdb/Makefile
lib/tdb/test/external-agent.c [new file with mode: 0644]
lib/tdb/test/external-agent.h [new file with mode: 0644]
lib/tdb/test/jenkins-be-hash.tdb [new file with mode: 0644]
lib/tdb/test/jenkins-le-hash.tdb [new file with mode: 0644]
lib/tdb/test/lock-tracking.c [new file with mode: 0644]
lib/tdb/test/lock-tracking.h [new file with mode: 0644]
lib/tdb/test/logging.c [new file with mode: 0644]
lib/tdb/test/logging.h [new file with mode: 0644]
lib/tdb/test/old-nohash-be.tdb [new file with mode: 0644]
lib/tdb/test/old-nohash-le.tdb [new file with mode: 0644]
lib/tdb/test/run-3G-file.c [new file with mode: 0644]
lib/tdb/test/run-bad-tdb-header.c [new file with mode: 0644]
lib/tdb/test/run-check.c [new file with mode: 0644]
lib/tdb/test/run-corrupt.c [new file with mode: 0644]
lib/tdb/test/run-die-during-transaction.c [new file with mode: 0644]
lib/tdb/test/run-endian.c [new file with mode: 0644]
lib/tdb/test/run-incompatible.c [new file with mode: 0644]
lib/tdb/test/run-nested-transactions.c [new file with mode: 0644]
lib/tdb/test/run-nested-traverse.c [new file with mode: 0644]
lib/tdb/test/run-no-lock-during-traverse.c [new file with mode: 0644]
lib/tdb/test/run-oldhash.c [new file with mode: 0644]
lib/tdb/test/run-open-during-transaction.c [new file with mode: 0644]
lib/tdb/test/run-readonly-check.c [new file with mode: 0644]
lib/tdb/test/run-rwlock-check.c [new file with mode: 0644]
lib/tdb/test/run-summary.c [new file with mode: 0644]
lib/tdb/test/run-transaction-expand.c [new file with mode: 0644]
lib/tdb/test/run-traverse-in-transaction.c [new file with mode: 0644]
lib/tdb/test/run-wronghash-fail.c [new file with mode: 0644]
lib/tdb/test/run-zero-append.c [new file with mode: 0644]
lib/tdb/test/run.c [new file with mode: 0644]
lib/tdb/test/rwlock-be.tdb [new file with mode: 0644]
lib/tdb/test/rwlock-le.tdb [new file with mode: 0644]
lib/tdb/test/tap-to-subunit.h [new file with mode: 0644]
lib/tdb/test/tdb.corrupt [new file with mode: 0644]