aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/seccomp-dualfilter.exp38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/seccomp-dualfilter.exp b/test/seccomp-dualfilter.exp
new file mode 100755
index 000000000..b497be5ea
--- /dev/null
+++ b/test/seccomp-dualfilter.exp
@@ -0,0 +1,38 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail ../src/tools/syscall_test mount\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "before mount"
15}
16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "after mount" {puts "TESTING ERROR 2.1\n";exit}
19 "parent is shutting down"
20}
21sleep 1
22
23send -- "firejail ../src/tools/syscall_test32 mount\r"
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "Child process initialized"
27}
28expect {
29 timeout {puts "TESTING ERROR 4\n";exit}
30 "before mount"
31}
32expect {
33 timeout {puts "TESTING ERROR 5\n";exit}
34 "after mount" {puts "TESTING ERROR 5.1\n";exit}
35 "parent is shutting down"
36}
37
38puts "\nall done\n"