diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-29 08:58:11 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-29 08:58:11 -0400 |
commit | 03afcbff573da7e7a1a89a60b05d827ff840d553 (patch) | |
tree | d13ff6fcf9e62ba6ec3581d4cea73e0ca9911018 /test | |
parent | readme.md (diff) | |
download | firejail-03afcbff573da7e7a1a89a60b05d827ff840d553.tar.gz firejail-03afcbff573da7e7a1a89a60b05d827ff840d553.tar.zst firejail-03afcbff573da7e7a1a89a60b05d827ff840d553.zip |
testing
Diffstat (limited to 'test')
-rwxr-xr-x | test/seccomp-dualfilter.exp | 38 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail ../src/tools/syscall_test mount\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "before mount" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 2\n";exit} | ||
18 | "after mount" {puts "TESTING ERROR 2.1\n";exit} | ||
19 | "parent is shutting down" | ||
20 | } | ||
21 | sleep 1 | ||
22 | |||
23 | send -- "firejail ../src/tools/syscall_test32 mount\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "Child process initialized" | ||
27 | } | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 4\n";exit} | ||
30 | "before mount" | ||
31 | } | ||
32 | expect { | ||
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 | |||
38 | puts "\nall done\n" | ||