diff options
Diffstat (limited to 'test/filters/seccomp-debug.exp')
-rwxr-xr-x | test/filters/seccomp-debug.exp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/filters/seccomp-debug.exp b/test/filters/seccomp-debug.exp new file mode 100755 index 000000000..dbc0d37a9 --- /dev/null +++ b/test/filters/seccomp-debug.exp | |||
@@ -0,0 +1,31 @@ | |||
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --seccomp --debug\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "SECCOMP Filter" | ||
14 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 2\n";exit} | ||
17 | "BLACKLIST" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 3\n";exit} | ||
21 | "open_by_handle_at" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 4\n";exit} | ||
25 | "Child process initialized" | ||
26 | } | ||
27 | sleep 2 | ||
28 | |||
29 | send -- "exit\r" | ||
30 | after 100 | ||
31 | puts "all done\n" | ||