test.c 455 B

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