]>
Commit | Line | Data |
---|---|---|
1fbf5591 CB |
1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
2 | ||
e5af758b | 3 | test_programs += custom_target( |
3c34a198 SG |
4 | 'main.sh', |
5 | build_by_default: want_tests != false, | |
6 | input: 'main.sh.in', | |
7 | output: 'main.sh', | |
8 | command: [ | |
9 | meson_render_jinja2, | |
10 | config_h, | |
11 | '@INPUT@', | |
12 | '@OUTPUT@', | |
13 | ]) | |
1fbf5591 | 14 | |
e5af758b | 15 | test_programs += custom_target( |
3c34a198 SG |
16 | 'test_cgroup', |
17 | build_by_default: want_tests != false, | |
18 | input: 'test_cgroup.in', | |
19 | output: 'test_cgroup', | |
20 | command: [ | |
21 | meson_render_jinja2, | |
22 | config_h, | |
23 | '@INPUT@', | |
24 | '@OUTPUT@', | |
25 | ]) | |
1fbf5591 | 26 | |
e5af758b | 27 | test_programs += custom_target( |
3c34a198 SG |
28 | 'test_confinement.sh', |
29 | build_by_default: want_tests != false, | |
30 | input: 'test_confinement.sh.in', | |
31 | output: 'test_confinement.sh', | |
32 | command: [ | |
33 | meson_render_jinja2, | |
34 | config_h, | |
35 | '@INPUT@', | |
36 | '@OUTPUT@', | |
37 | ]) | |
1fbf5591 | 38 | |
e5af758b | 39 | test_programs += custom_target( |
3c34a198 SG |
40 | 'test_meminfo_hierarchy.sh', |
41 | build_by_default: want_tests != false, | |
42 | input: 'test_meminfo_hierarchy.sh.in', | |
43 | output: 'test_meminfo_hierarchy.sh', | |
44 | command: [ | |
45 | meson_render_jinja2, | |
46 | config_h, | |
47 | '@INPUT@', | |
48 | '@OUTPUT@', | |
49 | ]) | |
1fbf5591 | 50 | |
e5af758b | 51 | test_programs += custom_target( |
3c34a198 SG |
52 | 'test_proc', |
53 | build_by_default: want_tests != false, | |
54 | input: 'test_proc.in', | |
55 | output: 'test_proc', | |
56 | command: [ | |
57 | meson_render_jinja2, | |
58 | config_h, | |
59 | '@INPUT@', | |
60 | '@OUTPUT@', | |
61 | ]) | |
1fbf5591 | 62 | |
e1f2baff CBM |
63 | test_programs += custom_target( |
64 | 'test_sysfs', | |
65 | build_by_default: want_tests != false, | |
66 | input: 'test_sysfs.in', | |
67 | output: 'test_sysfs', | |
68 | command: [ | |
69 | meson_render_jinja2, | |
70 | config_h, | |
71 | '@INPUT@', | |
72 | '@OUTPUT@', | |
73 | ]) | |
74 | ||
e5af758b | 75 | test_programs += custom_target( |
3c34a198 SG |
76 | 'test_read_proc.sh', |
77 | build_by_default: want_tests != false, | |
78 | input: 'test_read_proc.sh.in', | |
79 | output: 'test_read_proc.sh', | |
80 | command: [ | |
81 | meson_render_jinja2, | |
82 | config_h, | |
83 | '@INPUT@', | |
84 | '@OUTPUT@', | |
85 | ]) | |
1fbf5591 | 86 | |
e5af758b | 87 | test_programs += custom_target( |
3c34a198 SG |
88 | 'test_readdir', |
89 | build_by_default: want_tests != false, | |
90 | input: 'test_readdir.in', | |
91 | output: 'test_readdir', | |
92 | command: [ | |
93 | meson_render_jinja2, | |
94 | config_h, | |
95 | '@INPUT@', | |
96 | '@OUTPUT@', | |
97 | ]) | |
1fbf5591 | 98 | |
e5af758b | 99 | test_programs += custom_target( |
3c34a198 SG |
100 | 'test_reload.sh', |
101 | build_by_default: want_tests != false, | |
102 | input: 'test_reload.sh.in', | |
103 | output: 'test_reload.sh', | |
104 | command: [ | |
105 | meson_render_jinja2, | |
106 | config_h, | |
107 | '@INPUT@', | |
108 | '@OUTPUT@', | |
109 | ]) | |
1fbf5591 | 110 | |
e5af758b | 111 | test_programs += custom_target( |
3c34a198 SG |
112 | 'test_sigusr2.sh', |
113 | build_by_default: want_tests != false, | |
114 | input: 'test_sigusr2.sh.in', | |
115 | output: 'test_sigusr2.sh', | |
116 | command: [ | |
117 | meson_render_jinja2, | |
118 | config_h, | |
119 | '@INPUT@', | |
120 | '@OUTPUT@', | |
121 | ]) | |
1fbf5591 | 122 | |
e5af758b | 123 | test_programs += executable( |
3c34a198 SG |
124 | 'test-read', |
125 | 'test-read.c', | |
126 | include_directories: config_include, | |
127 | install: false, | |
128 | build_by_default: want_tests != false) | |
1fbf5591 | 129 | |
e5af758b | 130 | test_programs += executable( |
3c34a198 SG |
131 | 'test-syscalls', |
132 | 'test_syscalls.c', | |
133 | include_directories: config_include, | |
134 | install: false, | |
135 | build_by_default: want_tests != false) | |
1fbf5591 CB |
136 | |
137 | test_cpusetrange_sources = files( | |
3c34a198 SG |
138 | 'cpusetrange.c', |
139 | '../src/cpuset_parse.c', | |
140 | '../src/cpuset_parse.h') | |
1fbf5591 | 141 | |
e5af758b | 142 | test_programs += executable( |
3c34a198 SG |
143 | 'test-cpusetrange', |
144 | test_cpusetrange_sources, | |
145 | include_directories: config_include, | |
146 | install: false, | |
147 | build_by_default: want_tests != false) |