blob: 2f42e17e2a900cab75d7318ea6b941bdf844385a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <test/lib/color.h>
#define _META_TEST_RESULT(name,result) if (result) { fprintf(stderr, "%s: \x1b[92mPASS\x1b[0m\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)
if (all_success == TRUE) {
return 0;
}
return 1;
}
|