From ca175dffc05aa1b00641647272aa7ab3d1201565 Mon Sep 17 00:00:00 2001 From: Christian C Date: Sat, 8 Mar 2025 00:57:18 -0800 Subject: Test minor restructure --- src/test/test.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/test/test.c (limited to 'src') 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 -#include -#include - -#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; -} -- cgit v1.2.1