summaryrefslogtreecommitdiffstats
path: root/lib/tdb2/test/run-capabilities.c
Commit message (Collapse)AuthorAgeFilesLines
* TDB2: Goodbye TDB2, Hello NTDB.Rusty Russell2012-06-191-271/+0
| | | | | | | | | | | This renames everything from tdb2 to ntdb: importantly, we no longer use the tdb_ namespace, so you can link against both ntdb and tdb if you want to. This also enables building of standalone ntdb by the autobuild script. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: use ccan/err instead of err.hRusty Russell2012-06-091-1/+0
| | | | | | | | | Solaris has no err.h, so use CCAN replacement. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date(master): Sat Jun 9 12:07:15 CEST 2012 on sn-devel-104
* lib/tdb2: adapt unit tests to SAMBA environment.Rusty Russell2012-03-071-1/+1
| | | | | | | | | | This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: display capability information in tdb_summary()Rusty Russell2011-12-051-1/+55
| | | | | | | | | This means we know they're there in future, and what restrictions they carry. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit b3ca95351517e76b635347b39382b059a66f8388)
* tdb2: add a capability list from the header.Rusty Russell2011-12-051-0/+218
This allows even more extensibility in future: in particular, the top bits of each capability tell us what to do if we don't understand it: fail the open, fail to open for write, or don't try to check the format. tdb_check needs to understand the capability list so it can know to skip over it: each element in the list is prefixed with the type tag and the length. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 35f198de1851a7d57064546b7ced677b6fabee27)