Motr  M0
main.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #include "ut/ut.h"
24 
25 /* sort test suites in alphabetic order */
26 extern void m0_test_lib_uuid(void);
27 extern void m0_ut_lib_buf_test(void);
28 extern void test_0C(void);
29 extern void test_atomic(void);
30 extern void test_bitmap(void);
31 extern void test_bitmap_onwire(void);
32 extern void test_bob(void);
33 extern void test_chan(void);
34 extern void test_cookie(void);
35 extern void test_finject(void);
36 extern void test_getopts(void);
37 extern void test_list(void);
38 extern void test_lockers(void);
39 extern void test_memory(void);
40 extern void m0_test_misc(void);
41 extern void test_mutex(void);
42 extern void test_processor(void);
43 extern void test_queue(void);
44 extern void test_refs(void);
45 extern void test_rw(void);
46 extern void test_thread(void);
47 extern void m0_ut_time_test(void);
48 extern void test_timer(void);
49 extern void test_tlist(void);
50 extern void test_trace(void);
51 extern void test_varr(void);
52 extern void test_vec(void);
53 extern void test_zerovec(void);
54 extern void test_locality(void);
55 extern void test_locality_chore(void);
56 extern void test_hashtable(void);
57 extern void test_fold(void);
58 extern void m0_ut_lib_thread_pool_test(void);
59 extern void test_combinations(void);
60 extern void test_hash_fnc(void);
61 extern void m0_test_coroutine(void);
62 extern void m0_test_coroutine2(void);
63 
65  .ts_name = "libm0-ut",
66  .ts_owners = "Nikita",
67  .ts_tests = {
68  { "0C", test_0C },
69  { "atomic", test_atomic },
70  { "bitmap", test_bitmap },
71  { "onwire-bitmap", test_bitmap_onwire },
72  { "bob", test_bob },
73  { "buf", m0_ut_lib_buf_test },
74  { "chan", test_chan },
75  { "cookie", test_cookie },
76  { "finject", test_finject, "Dima" },
77  { "getopts", test_getopts },
78  { "hash", test_hashtable },
79  { "list", test_list },
80  { "locality", test_locality, "Nikita" },
81  { "locality-chore", test_locality_chore, "Nikita" },
82  { "lockers", test_lockers },
83  { "memory", test_memory },
84  { "misc", m0_test_misc },
85  { "mutex", test_mutex },
86  { "rwlock", test_rw },
87  { "processor", test_processor },
88  { "queue", test_queue },
89  { "refs", test_refs },
90  { "thread", test_thread },
91  { "time", m0_ut_time_test },
92  { "timer", test_timer, "Max" },
93  { "tlist", test_tlist },
94  { "trace", test_trace, "Dima, Andriy" },
95  { "uuid", m0_test_lib_uuid },
96  { "varr", test_varr },
97  { "vec", test_vec, "Huang Hua"},
98  { "zerovec", test_zerovec },
99  { "fold", test_fold, "Nikita" },
100  { "tpool", m0_ut_lib_thread_pool_test },
101  { "combinations", test_combinations },
102  { "hash-fnc", test_hash_fnc, "Leonid" },
103  { "coroutine", m0_test_coroutine, "Anatoliy" },
104  { "coroutine2", m0_test_coroutine2,"Anatoliy" },
105  { NULL, NULL }
106  }
107 };
108 
109 /*
110  * Local variables:
111  * c-indentation-style: "K&R"
112  * c-basic-offset: 8
113  * tab-width: 8
114  * fill-column: 80
115  * scroll-step: 1
116  * End:
117  */
#define NULL
Definition: misc.h:38
void m0_test_misc(void)
Definition: misc.c:263
M0_INTERNAL void test_locality(void)
Definition: locality.c:204
M0_INTERNAL void test_queue(void)
Definition: queue.c:36
M0_INTERNAL void test_bitmap(void)
Definition: bitmap.c:63
void m0_test_coroutine(void)
Definition: coroutine.c:121
M0_INTERNAL void test_bob(void)
Definition: bob.c:131
M0_INTERNAL void test_lockers(void)
Definition: lockers.c:44
M0_INTERNAL void test_bitmap_onwire(void)
Definition: bitmap.c:120
Definition: ut.h:77
M0_INTERNAL void test_finject(void)
Definition: finject.c:282
M0_INTERNAL void test_varr(void)
Definition: varr.c:146
M0_INTERNAL void test_chan(void)
Definition: chan.c:89
M0_INTERNAL void test_rw(void)
Definition: rwlock.c:263
M0_INTERNAL void test_thread(void)
Definition: thread.c:101
M0_INTERNAL void m0_ut_lib_buf_test(void)
Definition: buf.c:39
void test_processor(void)
Definition: processor.c:639
M0_INTERNAL void m0_test_lib_uuid(void)
Definition: uuid.c:74
void test_timer(void)
Definition: timer.c:471
void test_atomic(void)
Definition: atomic.c:140
M0_INTERNAL void m0_ut_time_test(void)
Definition: time.c:228
void test_getopts(void)
Definition: getopts.c:29
M0_INTERNAL void test_fold(void)
Definition: fold.c:36
M0_INTERNAL void test_tlist(void)
Definition: tlist.c:84
M0_INTERNAL void test_locality_chore(void)
Definition: locality.c:342
M0_INTERNAL void test_mutex(void)
Definition: mutex.c:68
struct m0_ut_suite libm0_ut
Definition: main.c:64
M0_INTERNAL void test_zerovec(void)
Definition: zerovec.c:215
void test_hash_fnc(void)
Definition: hash_fnc.c:98
M0_INTERNAL void test_refs(void)
Definition: refs.c:43
M0_INTERNAL void test_vec(void)
Definition: vec.c:52
void test_combinations(void)
Definition: combinations.c:27
M0_INTERNAL void test_list(void)
Definition: list.c:32
void m0_test_coroutine2(void)
Definition: coroutine2.c:224
M0_INTERNAL void test_cookie(void)
Definition: cookie.c:141
const char * ts_name
Definition: ut.h:99
M0_INTERNAL void test_trace(void)
Definition: trace.c:46
void test_0C(void)
Definition: assert.c:26
M0_INTERNAL void test_hashtable(void)
Definition: hash.c:80
void m0_ut_lib_thread_pool_test(void)
Definition: thread_pool.c:166
M0_INTERNAL void test_memory(void)
Definition: memory.c:33