tdb2: speed up testing.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:09:17 +0000 (15:39 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:09:17 +0000 (15:39 +0930)
commita99c2ccf97465d47c3277d997ea93f20ff97ad4d
tree14e3962d76d7c7d2dbad86f2a9577ea41cef7ebf
parentc4ca9f54301c0367891be6330f59fdd5dcdd51d1
tdb2: speed up testing.

The time to run tests under valgrind has become excessive; particularly
the failure tests which fork().   Thus we cut down testing:

1) api-94-repack: reduce from 234 seconds to 2 seconds by cutting
   iterations, despite adding TDB_VERSION1 tests.

2) api-missing-entries: reduce from 17 seconds to under 1 second by
   not checking db inside loop, but at end.

This reduces the total ccanlint time from 729 to 489 seconds.
ccan/tdb2/test/api-93-repack.c
ccan/tdb2/test/api-missing-entries.c