A test in reftable library has been rewritten using the unit test framework. * cp/unit-test-reftable-tree: t-reftable-tree: improve the test for infix_walk() t-reftable-tree: add test for non-existent key t-reftable-tree: split test_tree() into two sub-test functions t: move reftable/tree_test.c to the unit testing framework reftable: remove unnecessary curly braces in reftable/tree.c
18 lines
394 B
C
18 lines
394 B
C
#include "reftable/system.h"
|
|
#include "reftable/reftable-tests.h"
|
|
#include "test-tool.h"
|
|
|
|
int cmd__reftable(int argc, const char **argv)
|
|
{
|
|
/* test from simple to complex. */
|
|
block_test_main(argc, argv);
|
|
readwrite_test_main(argc, argv);
|
|
stack_test_main(argc, argv);
|
|
return 0;
|
|
}
|
|
|
|
int cmd__dump_reftable(int argc, const char **argv)
|
|
{
|
|
return reftable_dump_main(argc, (char *const *)argv);
|
|
}
|