forked from swoole/swoole-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.h
More file actions
73 lines (55 loc) · 2.04 KB
/
Copy pathtests.h
File metadata and controls
73 lines (55 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.apache.org/licenses/LICENSE-2.0.html |
| If you did not receive a copy of the Apache2.0 license and are unable|
| to obtain it through the world-wide-web, please send a note to |
| license@swoole.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Tianfeng Han <mikan.tenny@gmail.com> |
+----------------------------------------------------------------------+
*/
#ifndef SW_TESTS_H_
#define SW_TESTS_H_
#define swUnitTest(x) int swUnitTest_##x(swUnitTest *object)
#define swUnitTest_steup(x,n,t) _swUnitTest_setup(swUnitTest_##x, #x, n, t)
typedef struct _swUnitTest
{
int argc;
char **argv;
} swUnitTest;
typedef int (*swUnitTest_Func)(swUnitTest *object);
void _swUnitTest_setup(swUnitTest_Func func, char *func_name, int run_times, char *comment);
int swUnitTest_run(swUnitTest *object);
swUnitTest(mem_test1);
swUnitTest(mem_test2);
swUnitTest(mem_test3);
swUnitTest(mem_test4);
swUnitTest(dnslookup_test);
swUnitTest(client_test);
swUnitTest(server_test);
swUnitTest(hashmap_test1);
swUnitTest(ds_test2);
swUnitTest(ds_test1);
swUnitTest(chan_test);
swUnitTest(u1_test2);
swUnitTest(u1_test1);
swUnitTest(u1_test3);
swUnitTest(http_test2);
swUnitTest(type_test1);
swUnitTest(aio_test);
swUnitTest(aio_test2);
swUnitTest(ws_test1);
swUnitTest(http_test1);
swUnitTest(http_test2);
swUnitTest(heap_test1);
swUnitTest(linkedlist_test);
swUnitTest(rbtree_test);
void p_str(void *str);
swUnitTest(pool_thread);
swUnitTest(ringbuffer_test1);
#endif /* SW_TESTS_H_ */