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_apps.h" |
8 |
|
|
#include "test_arrays.h" |
9 |
|
|
#include "test_blobs.h" |
10 |
|
|
#include "test_comparers.h" |
11 |
|
|
#include "test_coroutines.h" |
12 |
|
|
#include "test_delegates.h" |
13 |
|
|
#include "test_files.h" |
14 |
|
|
#include "test_functions.h" |
15 |
|
|
#include "test_maps.h" |
16 |
|
|
#include "test_math.h" |
17 |
|
|
#include "test_memalloc.h" |
18 |
|
|
#include "test_process.h" |
19 |
|
|
#include "test_runnables.h" |
20 |
|
|
#include "test_strings.h" |
21 |
|
|
#include "test_threading.h" |
22 |
|
|
#include "test_times.h" |
23 |
|
|
#include "test_uris.h" |
24 |
|
|
#include "test_utilities.h" |
25 |
|
|
#include "test_values.h" |
26 |
|
|
#include "test_wrappers.h" |
27 |
|
|
|
28 |
|
|
#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) |
29 |
|
|
# include <vld.h> |
30 |
|
|
#endif |
31 |
|
|
|
32 |
|
|
static gate_test_case_t test_cases[] = |
33 |
|
|
{ |
34 |
|
|
{ "atomics", &test_atomics }, |
35 |
|
|
{ "mutex", &test_mutex }, |
36 |
|
|
{ "semaphore", &test_semaphore }, |
37 |
|
|
{ "syncevent", &test_syncevent }, |
38 |
|
|
{ "synccondition", &test_synccondition }, |
39 |
|
|
{ "threads", &test_threads }, |
40 |
|
|
{ "delegates", &test_delegates }, |
41 |
|
|
{ "comparers", &test_comparers }, |
42 |
|
|
#if !defined(GATE_SYS_DOS) |
43 |
|
|
{ "maps", &test_maps }, |
44 |
|
|
#endif |
45 |
|
|
{ "memalloc", &test_memalloc }, |
46 |
|
|
{ "math", &test_math }, |
47 |
|
|
{ "filesystem", &test_filesystem }, |
48 |
|
|
{ "callstack", &test_callstack }, |
49 |
|
|
{ "function_generic_call", &test_function_generic_call }, |
50 |
|
|
{ "function_fault_guard", &test_function_fault_guard }, |
51 |
|
|
{ "runnables", &test_runnables }, |
52 |
|
|
{ "apps", &test_apps }, |
53 |
|
|
{ "arrays", &test_arrays }, |
54 |
|
|
{ "blobs", &test_blobs }, |
55 |
|
|
{ "coroutines", &test_coroutines }, |
56 |
|
|
{ "processes", &test_processes }, |
57 |
|
|
{ "strings", &test_strings }, |
58 |
|
|
{ "times", &test_times }, |
59 |
|
|
{ "uris", &test_uris }, |
60 |
|
|
{ "utilities", &test_utilities }, |
61 |
|
|
{ "values", &test_values }, |
62 |
|
|
{ "wrappers", &test_wrappers } |
63 |
|
|
}; |
64 |
|
|
static gate_size_t test_cases_count = sizeof(test_cases) / sizeof(test_cases[0]); |
65 |
|
|
|
66 |
|
1 |
int gate_main(char const* program, char const* const* arguments, gate_size_t argcount, gate_uintptr_t apphandle) |
67 |
|
|
{ |
68 |
|
|
GATE_UNUSED_ARG(program); |
69 |
|
|
GATE_UNUSED_ARG(apphandle); |
70 |
|
1 |
return gate_test_main(test_cases, test_cases_count, arguments, argcount); |
71 |
|
|
} |
72 |
|
|
|