aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/seccomp-print.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/seccomp-print.exp')
-rwxr-xr-xtest/utils/seccomp-print.exp36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/utils/seccomp-print.exp b/test/utils/seccomp-print.exp
new file mode 100755
index 000000000..d0531a9c3
--- /dev/null
+++ b/test/utils/seccomp-print.exp
@@ -0,0 +1,36 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --name=test\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 2
16
17spawn $env(SHELL)
18send -- "firejail --seccomp.print=test\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 "EXAMINE_SYSCAL"
22}
23expect {
24 timeout {puts "TESTING ERROR 2\n";exit}
25 "init_module"
26}
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 "delete_module"
30}
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "RETURN_ALLOW"
34}
35sleep 1
36puts "\nall done\n"