Motr  M0
main.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2014-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 #include "module/instance.h" /* m0_get */
26 #include "module/module.h"
27 #include "stob/module.h" /* m0_stob_module__get */
28 
29 extern void m0_stob_ut_cache(void);
30 extern void m0_stob_ut_cache_idle_size0(void);
31 extern void m0_stob_ut_stob_domain_null(void);
32 extern void m0_stob_ut_stob_null(void);
33 extern void m0_stob_ut_stob_domain_linux(void);
34 extern void m0_stob_ut_stob_linux(void);
35 extern void m0_stob_ut_adieu_linux(void);
36 extern void m0_stob_ut_stobio_linux(void);
37 extern void m0_stob_ut_stob_domain_perf(void);
38 extern void m0_stob_ut_stob_domain_perf_null(void);
39 extern void m0_stob_ut_stob_perf(void);
40 extern void m0_stob_ut_stob_perf_null(void);
41 extern void m0_stob_ut_adieu_perf(void);
42 extern void m0_stob_ut_stobio_perf(void);
43 extern void m0_stob_ut_stob_domain_ad(void);
44 extern void m0_stob_ut_stob_ad(void);
45 extern void m0_stob_ut_adieu_ad(void);
46 
47 struct m0_ut_suite stob_ut = {
48  .ts_name = "stob-ut",
49  .ts_init = NULL,
50  .ts_fini = NULL,
51  .ts_tests = {
52  { "cache", m0_stob_ut_cache },
53  { "cache-idle-size0", m0_stob_ut_cache_idle_size0 },
54 #ifndef __KERNEL__
55  { "null-stob-domain", m0_stob_ut_stob_domain_null },
56  { "null-stob", m0_stob_ut_stob_null },
57  { "linux-stob-domain", m0_stob_ut_stob_domain_linux },
58  { "linux-stob", m0_stob_ut_stob_linux },
59  { "linux-adieu", m0_stob_ut_adieu_linux },
60  { "linux-stobio", m0_stob_ut_stobio_linux },
61  { "perf-stob-domain", m0_stob_ut_stob_domain_perf },
62  { "perf-stob-domain-null", m0_stob_ut_stob_domain_perf_null },
63  { "perf-stob", m0_stob_ut_stob_perf },
64  { "perf-stob-null", m0_stob_ut_stob_perf_null },
65  { "perf-adieu", m0_stob_ut_adieu_perf },
66  { "perf-stobio", m0_stob_ut_stobio_perf },
67  { "ad-stob-domain", m0_stob_ut_stob_domain_ad },
68  { "ad-stob", m0_stob_ut_stob_ad },
69  { "ad-adieu", m0_stob_ut_adieu_ad },
70 #endif /* __KERNEL__ */
71  { NULL, NULL }
72  }
73 };
74 
75 /*
76  * Local variables:
77  * c-indentation-style: "K&R"
78  * c-basic-offset: 8
79  * tab-width: 8
80  * fill-column: 80
81  * scroll-step: 1
82  * End:
83  */
84 /*
85  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
86  */
void m0_stob_ut_cache(void)
Definition: cache.c:145
void m0_stob_ut_cache_idle_size0(void)
Definition: cache.c:151
void m0_stob_ut_stob_domain_null(void)
Definition: domain.c:80
void m0_stob_ut_adieu_ad(void)
Definition: ad.c:607
void m0_stob_ut_stob_domain_linux(void)
Definition: domain.c:86
#define NULL
Definition: misc.h:38
void m0_stob_ut_stob_ad(void)
Definition: stob.c:278
Definition: ut.h:77
void m0_stob_ut_adieu_linux(void)
Definition: adieu.c:294
void m0_stob_ut_stob_null(void)
Definition: stob.c:243
void m0_stob_ut_stobio_linux(void)
Definition: stobio.c:612
struct m0_ut_suite stob_ut
Definition: main.c:47
const char * ts_name
Definition: ut.h:99
void m0_stob_ut_stob_perf_null(void)
Definition: stob.c:266
void m0_stob_ut_stob_linux(void)
Definition: stob.c:252
void m0_stob_ut_stobio_perf(void)
Definition: stobio.c:624
void m0_stob_ut_stob_domain_perf_null(void)
Definition: domain.c:96
void m0_stob_ut_adieu_perf(void)
Definition: adieu.c:304
void m0_stob_ut_stob_domain_ad(void)
Definition: domain.c:106
void m0_stob_ut_stob_perf(void)
Definition: stob.c:259
void m0_stob_ut_stob_domain_perf(void)
Definition: domain.c:91