tdb: build and run unit tests in tdb/test/
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Feb 2012 04:15:29 +0000 (14:45 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Feb 2012 05:53:46 +0000 (06:53 +0100)
commit4d58d0fa8f936e7efdc02e31c053d42a47b3e62a
tree9da9d36373697f8b5c6357f23ffc6089faaf3fc6
parent205242e1769f96e0e8fccd52378965d35dd02093
tdb: build and run unit tests in tdb/test/

Now we can build the test binaries: the CCAN style is to compile
everything called "compile_ok*.c", compile and run everything called
"run*.c", compile, link with the module, and run everything called
"api*.c", and link any other C files (presumably test helpers) into
all the tests.

Unfortunately, actually passing that between the various parts of
wscript is painful, so I open-coded the names.

Also, the tests expect to be run in a (temporary) directory they can
pollute, with the test directory found in test/ (to find the canned
TDB files, for example).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Feb 14 06:53:46 CET 2012 on sn-devel-104
lib/tdb/wscript