#include "test_term.c" #include "test_store_ht.c" #include "test_store_mdb.c" #include "test_graph.c" int main(int argc, char **argv) { // Set env variable to test path. putenv ("LSUP_MDB_STORE_PATH=" TMPDIR "/lsup_test_mdb"); // Clear out database from previous test. rm_r (getenv ("LSUP_MDB_STORE_PATH")); int rc; if ( term_tests() || store_ht_tests() || store_mdb_tests() || graph_tests() || 0 ) { printf("Test failed."); rc = -1; } else { printf("ALL TESTS PASSED\n"); rc = 0; } printf("Tests run: %d\n", tests_run); return rc; }