summaryrefslogtreecommitdiffstats
path: root/test/testsuite-28.units
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-12-10 09:32:44 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-28 11:46:47 +0100
commit94370e627fe62d20557832765bb733ac2bcde6c6 (patch)
treeb2d03c304baeb6f06ad75589a8de4a345c273ca5 /test/testsuite-28.units
parenttest: move TEST-27-STDOUTFILE setup to static files (diff)
downloadsystemd-94370e627fe62d20557832765bb733ac2bcde6c6.tar.xz
systemd-94370e627fe62d20557832765bb733ac2bcde6c6.zip
test: move TEST-28-PERCENTJ-WANTEDBY setup to static files
Diffstat (limited to 'test/testsuite-28.units')
-rw-r--r--test/testsuite-28.units/specifier-j-depends-wants.service6
-rw-r--r--test/testsuite-28.units/specifier-j-wants.service9
2 files changed, 15 insertions, 0 deletions
diff --git a/test/testsuite-28.units/specifier-j-depends-wants.service b/test/testsuite-28.units/specifier-j-depends-wants.service
new file mode 100644
index 0000000000..1db4d855b9
--- /dev/null
+++ b/test/testsuite-28.units/specifier-j-depends-wants.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Dependent service for percent-j specifier
+
+[Service]
+Type=oneshot
+ExecStart=touch /tmp/test-specifier-j-wants
diff --git a/test/testsuite-28.units/specifier-j-wants.service b/test/testsuite-28.units/specifier-j-wants.service
new file mode 100644
index 0000000000..10c35906bb
--- /dev/null
+++ b/test/testsuite-28.units/specifier-j-wants.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Wants with percent-j specifier
+Wants=specifier-j-depends-%j.service
+After=specifier-j-depends-%j.service
+
+[Service]
+Type=oneshot
+ExecStart=test -f /tmp/test-specifier-j-%j
+ExecStart=sh -c 'echo OK > /testok'