diff options
| author | Christian Cunningham <cc@local.lan> | 2025-03-08 00:57:18 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2025-03-08 00:57:18 -0800 |
| commit | 5112d40477e7d33db64478b1b5fd2a0cc41064bc (patch) | |
| tree | c6665b923e2ead8bb41e6f8ef8261cc7dbc24138 /src | |
| parent | 3e607bc9af376e5a4e5503733fec971f34fcc089 (diff) | |
Test minor restructure
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/test.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/test/test.c b/src/test/test.c deleted file mode 100644 index 40e2d6f..0000000 --- a/src/test/test.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <test/lib/color.h> -#include <test/lib/dir.h> -#include <test/lib/time.h> - -#define _META_TEST_RESULT(name,result) if (result) { fprintf(stderr, " \x1b[92mPASS\x1b[0m %s\n", name);} else { fprintf(stderr, "%s: \x1b[91mFAIL\x1b[0m\n", name);} - -int main() -{ - bool_t all_success = TRUE; - bool_t test_success; - // lib/color.c Test - test_success = TEST_lib_color(); - all_success &= test_success; - _META_TEST_RESULT("LIB/COLOR", test_success) - - // lib/dir.c Test - test_success = TEST_lib_dir(); - all_success &= test_success; - _META_TEST_RESULT("LIB/DIR", test_success) - - // lib/time.c Test - test_success = TEST_lib_time(); - all_success &= test_success; - _META_TEST_RESULT("LIB/TIME", test_success) - - if (all_success == TRUE) { - return 0; - } - return 1; -} |
