test: add simple test for validating some of the unit specifiers we support

(Also, sort list of test unit files in meson.build alphabetically, to
make future additions more systematic)
This commit is contained in:
Lennart Poettering
2017-10-26 18:01:04 +02:00
parent 14068e17f3
commit 9672b58398
3 changed files with 126 additions and 105 deletions
+15
View File
@@ -0,0 +1,15 @@
[Service]
Type=oneshot
ExecStart=/usr/bin/test %n = exec-specifier.service
ExecStart=/usr/bin/test %N = exec-specifier
ExecStart=/usr/bin/test %p = exec-specifier
ExecStart=/usr/bin/test %P = exec/specifier
ExecStart=/usr/bin/test %f = /exec/specifier
ExecStart=/usr/bin/test %t = /run
ExecStart=/usr/bin/test %S = /var/lib
ExecStart=/usr/bin/test %C = /var/cache
ExecStart=/usr/bin/test %L = /var/log
ExecStart=/usr/bin/test %U = 0
# We don't test the other specifiers here, since they migh resolve to different
# things in different test environments