]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/meson.build
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / test / meson.build
CommitLineData
4ff3f251 1test_data_files = '''
37efbbd8
ZJS
2 a.service
3 basic.target
4 b.service
5 c.service
6 daughter.service
7 d.service
8 end.service
9 e.service
10 f.service
11 grandchild.service
12 g.service
13 hello-after-sleep.target
14 hello.service
15 h.service
16 parent-deep.slice
17 parent.slice
18 sched_idle_bad.service
19 sched_idle_ok.service
20 sched_rr_bad.service
21 sched_rr_change.service
22 sched_rr_ok.service
23 shutdown.target
24 sleep.service
25 sockets.target
26 son.service
27 sysinit.target
28 testsuite.target
29 timers.target
30 unstoppable.service
31 test-path/paths.target
32 test-path/basic.target
33 test-path/sysinit.target
34 test-path/path-changed.service
35 test-path/path-directorynotempty.service
36 test-path/path-existsglob.service
37 test-path/path-exists.service
38 test-path/path-makedirectory.service
39 test-path/path-modified.service
40 test-path/path-mycustomunit.service
41 test-path/path-service.service
42 test-path/path-changed.path
43 test-path/path-directorynotempty.path
44 test-path/path-existsglob.path
45 test-path/path-exists.path
46 test-path/path-makedirectory.path
47 test-path/path-modified.path
48 test-path/path-unit.path
49 test-execute/exec-environment-empty.service
50 test-execute/exec-environment-multiple.service
51 test-execute/exec-environment.service
52 test-execute/exec-passenvironment-absent.service
53 test-execute/exec-passenvironment-empty.service
54 test-execute/exec-passenvironment-repeated.service
55 test-execute/exec-passenvironment.service
56 test-execute/exec-group.service
57 test-execute/exec-group-nfsnobody.service
58 test-execute/exec-supplementarygroups.service
59 test-execute/exec-supplementarygroups-single-group.service
60 test-execute/exec-supplementarygroups-single-group-user.service
61 test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service
62 test-execute/exec-supplementarygroups-multiple-groups-withgid.service
63 test-execute/exec-supplementarygroups-multiple-groups-withuid.service
64 test-execute/exec-dynamicuser-fixeduser.service
65 test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service
66 test-execute/exec-dynamicuser-supplementarygroups.service
8adb3d63 67 test-execute/exec-dynamicuser-state-dir.service
37efbbd8
ZJS
68 test-execute/exec-ignoresigpipe-no.service
69 test-execute/exec-ignoresigpipe-yes.service
70 test-execute/exec-personality-x86-64.service
71 test-execute/exec-personality-x86.service
72 test-execute/exec-personality-s390.service
73 test-execute/exec-personality-ppc64.service
74 test-execute/exec-personality-ppc64le.service
75 test-execute/exec-personality-aarch64.service
76 test-execute/exec-privatedevices-no.service
77 test-execute/exec-privatedevices-yes.service
78 test-execute/exec-privatedevices-no-capability-mknod.service
79 test-execute/exec-privatedevices-yes-capability-mknod.service
80 test-execute/exec-protectkernelmodules-no-capabilities.service
81 test-execute/exec-protectkernelmodules-yes-capabilities.service
82 test-execute/exec-protectkernelmodules-yes-mount-propagation.service
83 test-execute/exec-privatetmp-no.service
84 test-execute/exec-privatetmp-yes.service
85 test-execute/exec-readonlypaths.service
86 test-execute/exec-readonlypaths-mount-propagation.service
87 test-execute/exec-readwritepaths-mount-propagation.service
88 test-execute/exec-inaccessiblepaths-mount-propagation.service
c090d74d 89 test-execute/exec-inaccessiblepaths-proc.service
37efbbd8
ZJS
90 test-execute/exec-spec-interpolation.service
91 test-execute/exec-systemcallerrornumber.service
92 test-execute/exec-systemcallfilter-failing2.service
93 test-execute/exec-systemcallfilter-failing.service
94 test-execute/exec-systemcallfilter-not-failing2.service
95 test-execute/exec-systemcallfilter-not-failing.service
96 test-execute/exec-systemcallfilter-system-user.service
97 test-execute/exec-systemcallfilter-system-user-nfsnobody.service
42cc99d5 98 test-execute/exec-unset-environment.service
37efbbd8
ZJS
99 test-execute/exec-user.service
100 test-execute/exec-user-nfsnobody.service
101 test-execute/exec-workingdirectory.service
102 test-execute/exec-umask-0177.service
103 test-execute/exec-umask-default.service
104 test-execute/exec-privatenetwork-yes.service
105 test-execute/exec-environmentfile.service
106 test-execute/exec-oomscoreadjust-positive.service
107 test-execute/exec-oomscoreadjust-negative.service
108 test-execute/exec-ioschedulingclass-best-effort.service
109 test-execute/exec-ioschedulingclass-idle.service
110 test-execute/exec-ioschedulingclass-none.service
111 test-execute/exec-ioschedulingclass-realtime.service
112 test-execute/exec-capabilityboundingset-invert.service
113 test-execute/exec-capabilityboundingset-merge.service
114 test-execute/exec-capabilityboundingset-reset.service
115 test-execute/exec-capabilityboundingset-simple.service
116 test-execute/exec-capabilityambientset.service
117 test-execute/exec-capabilityambientset-nfsnobody.service
118 test-execute/exec-capabilityambientset-merge.service
119 test-execute/exec-capabilityambientset-merge-nfsnobody.service
120 test-execute/exec-runtimedirectory.service
121 test-execute/exec-runtimedirectory-mode.service
122 test-execute/exec-runtimedirectory-owner.service
123 test-execute/exec-runtimedirectory-owner-nfsnobody.service
124 test-execute/exec-restrict-namespaces-no.service
125 test-execute/exec-restrict-namespaces-yes.service
126 test-execute/exec-restrict-namespaces-mnt.service
127 test-execute/exec-restrict-namespaces-mnt-blacklist.service
128 test-execute/exec-read-only-path-succeed.service
129 test-execute/exec-privatedevices-yes-capability-sys-rawio.service
130 test-execute/exec-privatedevices-no-capability-sys-rawio.service
37efbbd8
ZJS
131 hwdb/10-bad.hwdb
132 journal-data/journal-1.txt
133 journal-data/journal-2.txt
4ff3f251
ZJS
134'''.split()
135
349cc4a5 136if conf.get('ENABLE_RESOLVED') == 1
37efbbd8
ZJS
137 test_data_files += '''
138 test-resolve/_openpgpkey.fedoraproject.org.pkts
139 test-resolve/fedoraproject.org.pkts
140 test-resolve/gandi.net.pkts
141 test-resolve/google.com.pkts
142 test-resolve/root.pkts
143 test-resolve/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts
144 test-resolve/teamits.com.pkts
145 test-resolve/zbyszek@fedoraproject.org.pkts
146 test-resolve/_443._tcp.fedoraproject.org.pkts
147 test-resolve/kyhwana.org.pkts
148 test-resolve/fake-caa.pkts
149 '''.split()
4ff3f251
ZJS
150endif
151
152if install_tests
37efbbd8
ZJS
153 foreach file : test_data_files
154 subdir = file.split('/')[0]
155 if subdir == file
156 subdir = ''
157 endif
4ff3f251 158
37efbbd8
ZJS
159 install_data(file,
160 install_dir : testsdir + '/testdata/' + subdir)
161 endforeach
4ff3f251 162endif
1256c481
ZJS
163
164############################################################
165
166sysv_generator_test_py = find_program('sysv-generator-test.py')
167test('sysv-generator-test',
168 sysv_generator_test_py)
b7191b2a
ZJS
169
170############################################################
171
172# prepare test/sys tree
173sys_script_py = find_program('sys-script.py')
174custom_target(
175 'sys',
176 command : [sys_script_py, meson.current_build_dir()],
177 output : 'sys',
178 build_by_default : true)
179
180udev_test_pl = find_program('udev-test.pl')
181test('udev-test',
182 udev_test_pl)
fdf666bc
ZJS
183
184hwdb_test_sh = find_program('hwdb-test.sh')
185test('hwdb-test',
186 hwdb_test_sh)