summaryrefslogtreecommitdiff
path: root/test/TEST-04-SECCOMP/test-seccomp.sh
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-02-14 17:21:41 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-14 19:00:32 -0500
commitf928d3263d788da8dec64f06c792988b6076e600 (patch)
treef8b7f989cc2315259b02a9556da7db08d381e931 /test/TEST-04-SECCOMP/test-seccomp.sh
parent8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7 (diff)
test: add basic seccomp tests
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