summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-specifier.service
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-10-11 14:07:51 +0200
committerLennart Poettering <lennart@poettering.net>2017-10-26 18:01:04 +0200
commit9672b5839875b058dedd16c3dbaf437cff37cea6 (patch)
tree8a6203e4d64d78a687bd437c5fd498651acca223 /test/test-execute/exec-specifier.service
parent14068e17f32a06e6a1f8f72416018bc653b8ea2d (diff)
downloadsystemd-9672b5839875b058dedd16c3dbaf437cff37cea6.tar.gz
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)
Diffstat (limited to 'test/test-execute/exec-specifier.service')
-rw-r--r--test/test-execute/exec-specifier.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test-execute/exec-specifier.service b/test/test-execute/exec-specifier.service
new file mode 100644
index 0000000000..228d7837ad
--- /dev/null
+++ b/test/test-execute/exec-specifier.service
@@ -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