forked from siriobalmelli/nonlibc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
50 lines (44 loc) · 1.03 KB
/
meson.build
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
tests = [
'atop_test.c',
'fnv_test.c',
'binhex_test.c',
'lifo_test.c',
'mg_test.c',
'mgrp_test.c',
'ndebug_test.c',
'nlc_urand_test.c',
'nmath_test.c',
'npath_test.c',
'nstring_test.c',
'pcg_rand_test.c',
'epoll_track_test.c',
'epoll_track_test_types.c',
'epoll_track_test_destructor.c'
]
# pthread dependency only for tests, not for nonlibc itself
test_deps = deps + [dependency('threads')]
foreach t : tests
name = t.split('.')[0]
name_format = name.split('_')[0]
a_test = executable(name, t,
include_directories : inc,
dependencies : test_deps,
link_with : nonlibc
)
# the 'core' test suite is what gets checked with e.g. Valgrind
test(name_format,
a_test,
suite : 'core',
timeout : 45
)
test_static = executable(name + '_static', t,
include_directories : inc,
dependencies : test_deps,
link_with : nonlibc.get_static_lib()
)
test(name_format,
test_static,
suite : 'static',
timeout : 45
)
endforeach