summaryrefslogtreecommitdiff
path: root/test/TEST-04-SECCOMP/test-seccomp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEST-04-SECCOMP/test-seccomp.sh')
-rwxr-xr-xtest/TEST-04-SECCOMP/test-seccomp.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/TEST-04-SECCOMP/test-seccomp.sh b/test/TEST-04-SECCOMP/test-seccomp.sh
new file mode 100755
index 0000000000..2496190445
--- /dev/null
+++ b/test/TEST-04-SECCOMP/test-seccomp.sh
@@ -0,0 +1,13 @@
+#!/bin/bash -x
+
+systemctl start will-fail.service
+systemctl start will-fail2.service
+systemctl start will-not-fail.service
+systemctl start will-not-fail2.service
+systemctl is-failed will-fail.service || exit 1
+systemctl is-failed will-fail2.service || exit 1
+systemctl is-failed will-not-fail.service && exit 1
+systemctl is-failed will-not-fail2.service && exit 1
+
+touch /testok
+exit 0