]> git.proxmox.com Git - mirror_lxcfs.git/blob - tests/meson.build
Merge pull request #558 from tych0/cpu-num-proc-stat
[mirror_lxcfs.git] / tests / meson.build
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 test_programs += custom_target(
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 ])
14
15 test_programs += custom_target(
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 ])
26
27 test_programs += custom_target(
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 ])
38
39 test_programs += custom_target(
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 ])
50
51 test_programs += custom_target(
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 ])
62
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
75 test_programs += custom_target(
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 ])
86
87 test_programs += custom_target(
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 ])
98
99 test_programs += custom_target(
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 ])
110
111 test_programs += custom_target(
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 ])
122
123 test_programs += executable(
124 'test-read',
125 'test-read.c',
126 include_directories: config_include,
127 install: false,
128 build_by_default: want_tests != false)
129
130 test_programs += executable(
131 'test-syscalls',
132 'test_syscalls.c',
133 include_directories: config_include,
134 install: false,
135 build_by_default: want_tests != false)
136
137 test_cpusetrange_sources = files(
138 'cpusetrange.c',
139 '../src/cpuset_parse.c',
140 '../src/cpuset_parse.h')
141
142 test_programs += executable(
143 'test-cpusetrange',
144 test_cpusetrange_sources,
145 include_directories: config_include,
146 install: false,
147 build_by_default: want_tests != false)