aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-29 08:58:11 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-29 08:58:11 -0400
commit03afcbff573da7e7a1a89a60b05d827ff840d553 (patch)
treed13ff6fcf9e62ba6ec3581d4cea73e0ca9911018
parentreadme.md (diff)
downloadfirejail-03afcbff573da7e7a1a89a60b05d827ff840d553.tar.gz
firejail-03afcbff573da7e7a1a89a60b05d827ff840d553.tar.zst
firejail-03afcbff573da7e7a1a89a60b05d827ff840d553.zip
testing
-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"