summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-11 16:43:58 +0200
committerGitHub <noreply@github.com>2019-07-11 16:43:58 +0200
commit2e8e1a1ab670c31969ac5a4ab2a7e06ba1d48cde (patch)
tree65f154ab23b99c807a18c1bb544f085bd29cf75b /test
parentMerge pull request #12176 from poettering/clean-dir2 (diff)
parenttests: Check trivial loop between two jobs (diff)
downloadsystemd-2e8e1a1ab670c31969ac5a4ab2a7e06ba1d48cde.tar.xz
systemd-2e8e1a1ab670c31969ac5a4ab2a7e06ba1d48cde.zip
Merge pull request #12461 from Werkov/fix-job-ordering
Refactor job ordering implementation (and fix cycle detection)
Diffstat (limited to 'test')
-rw-r--r--test/a-conj.service8
-rw-r--r--test/i.service8
-rw-r--r--test/meson.build2
3 files changed, 18 insertions, 0 deletions
diff --git a/test/a-conj.service b/test/a-conj.service
new file mode 100644
index 0000000000..db37ae71d4
--- /dev/null
+++ b/test/a-conj.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=A conjugate
+Requires=a.service
+After=a.service
+Before=a.service
+
+[Service]
+ExecStart=/bin/true
diff --git a/test/i.service b/test/i.service
new file mode 100644
index 0000000000..938ea77bdf
--- /dev/null
+++ b/test/i.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=I
+Conflicts=a.service d.service
+Wants=b.service
+After=b.service
+
+[Service]
+ExecStart=/bin/true
diff --git a/test/meson.build b/test/meson.build
index 17d0f3cddd..8c71e72667 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -2,6 +2,7 @@
test_data_files = '''
a.service
+ a-conj.service
b.service
basic.target
c.service
@@ -26,6 +27,7 @@ test_data_files = '''
hello-after-sleep.target
hello.service
hwdb/10-bad.hwdb
+ i.service
journal-data/journal-1.txt
journal-data/journal-2.txt
nomem.slice