test.c 511 B

12345678910111213141516171819202122232425262728
  1. #include "test_term.c"
  2. #include "test_htable.c"
  3. #include "test_store_mdb.c"
  4. #include "test_graph.c"
  5. int main(int argc, char **argv) {
  6. int result = (
  7. //term_tests() |
  8. //htable_tests() |
  9. store_mdb_test() |
  10. //graph_tests() |
  11. 0);
  12. printf("Test result: %lu\n", (size_t)result);
  13. if (result != 0) {
  14. printf("Test failed.");
  15. }
  16. else {
  17. printf("ALL TESTS PASSED\n");
  18. }
  19. printf("Tests run: %d\n", tests_run);
  20. return result != 0;
  21. }