|
@@ -1,4 +1,5 @@
|
|
|
#include "test_term.c"
|
|
|
+#include "test_store_ht.c"
|
|
|
#include "test_store_mdb.c"
|
|
|
#include "test_graph.c"
|
|
|
|
|
@@ -9,23 +10,24 @@ int main(int argc, char **argv) {
|
|
|
|
|
|
rm_r (getenv ("LSUP_MDB_STORE_PATH"));
|
|
|
|
|
|
- int result = (
|
|
|
- term_tests() |
|
|
|
- store_mdb_test() |
|
|
|
- graph_tests() |
|
|
|
- 0);
|
|
|
+ int rc;
|
|
|
|
|
|
- printf("Test result: %lu\n", (size_t)result);
|
|
|
-
|
|
|
- if (result != 0) {
|
|
|
+ if (
|
|
|
+ term_tests() ||
|
|
|
+ store_ht_tests() ||
|
|
|
+ store_mdb_tests() ||
|
|
|
+ graph_tests() ||
|
|
|
+ 0
|
|
|
+ ) {
|
|
|
printf("Test failed.");
|
|
|
- }
|
|
|
- else {
|
|
|
+ rc = -1;
|
|
|
+ } else {
|
|
|
printf("ALL TESTS PASSED\n");
|
|
|
+ rc = 0;
|
|
|
}
|
|
|
|
|
|
printf("Tests run: %d\n", tests_run);
|
|
|
|
|
|
- return result != 0;
|
|
|
+ return rc;
|
|
|
}
|
|
|
|