| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "gate/gatemain.h" | ||
| 2 | |||
| 3 | #include "gate/tests.h" | ||
| 4 | #include "gate/console.h" | ||
| 5 | #include "gate/threading.h" | ||
| 6 | |||
| 7 | #include "test_coroutines.h" | ||
| 8 | #include "test_files.h" | ||
| 9 | #include "test_process.h" | ||
| 10 | #include "test_threading.h" | ||
| 11 | #include "test_times.h" | ||
| 12 | |||
| 13 | #if defined(GATE_COMPILER_MSVC) && defined(GATE_LEAK_DETECTION) && defined(GATE_SYS_WIN) && !defined(GATE_SYS_WINCE) && (GATE_ARCH != GATE_ARCH_ARM32) && (GATE_ARCH != GATE_ARCH_ARM64) | ||
| 14 | # include <vld.h> | ||
| 15 | #endif | ||
| 16 | |||
| 17 | static gate_test_case_t test_cases[] = | ||
| 18 | { | ||
| 19 | { "atomics", &test_atomics }, | ||
| 20 | { "mutex", &test_mutex }, | ||
| 21 | { "semaphore", &test_semaphore }, | ||
| 22 | { "syncevent", &test_syncevent }, | ||
| 23 | { "synccondition", &test_synccondition }, | ||
| 24 | { "threads", &test_threads }, | ||
| 25 | { "filesystem", &test_filesystem }, | ||
| 26 | { "coroutines", &test_coroutines }, | ||
| 27 | { "processes", &test_processes }, | ||
| 28 | { "times", &test_times } | ||
| 29 | }; | ||
| 30 | static gate_size_t test_cases_count = sizeof(test_cases) / sizeof(test_cases[0]); | ||
| 31 | |||
| 32 | 1 | int gate_main(char const* program, char const* const* arguments, gate_size_t argcount, gate_uintptr_t apphandle) | |
| 33 | { | ||
| 34 | GATE_UNUSED_ARG(program); | ||
| 35 | GATE_UNUSED_ARG(apphandle); | ||
| 36 | 1 | return gate_test_main(test_cases, test_cases_count, arguments, argcount); | |
| 37 | } | ||
| 38 |