diff options
author | dzwdz | 2022-08-04 21:43:38 +0200 |
---|---|---|
committer | dzwdz | 2022-08-04 21:43:38 +0200 |
commit | 26dc784103914b9d6ba36e0a96fa4b3af977626f (patch) | |
tree | d1c9938bac9426d4f6709344315d845b45b20865 /src/user/app/tests/tests.h | |
parent | 81a58004d51547d074b4218f906b0b95f2b2c5dc (diff) |
user/tests: split the tests by parts of codebase
Diffstat (limited to 'src/user/app/tests/tests.h')
-rw-r--r-- | src/user/app/tests/tests.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/user/app/tests/tests.h b/src/user/app/tests/tests.h index 5f36fe0..974014a 100644 --- a/src/user/app/tests/tests.h +++ b/src/user/app/tests/tests.h @@ -3,20 +3,20 @@ #include <stdio.h> #include <unistd.h> -void stress_all(void); -void test_all(void); +#define TMPFILEPATH "/tmp/.test_internal" -void test_pipe(void); -void test_printf(void); -void test_semaphore(void); +void run_test(void (*fn)()); -#ifdef TEST_MACROS +void r_k_fs(void); +void r_k_misc(void); +void r_k_miscsyscall(void); +void r_libc_esemaphore(void); +void r_libc_string(void); +void r_printf(void); #define argify(str) str, sizeof(str) - 1 #define test_fail() do { \ printf("\033[31m" "TEST FAILED: %s():%u\n" "\033[0m", __func__, __LINE__); \ exit(0); \ } while (0) -#define assert(cond) if (!(cond)) test_fail(); - -#endif +#define test(cond) if (!(cond)) test_fail(); |