diff options
author | 2017-03-04 14:47:47 -0500 | |
---|---|---|
committer | 2017-03-04 14:47:47 -0500 | |
commit | 76fcd85a1f441de1192194fcb712c35b7d985b69 (patch) | |
tree | 5fab3a982cb12d9891c06e2a462d3c71887c6416 /test/filters/debug.exp | |
parent | fix and document firemon --nowrap (diff) | |
download | firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.tar.gz firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.tar.zst firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.zip |
testing
Diffstat (limited to 'test/filters/debug.exp')
-rwxr-xr-x | test/filters/debug.exp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/filters/debug.exp b/test/filters/debug.exp new file mode 100755 index 000000000..493022c05 --- /dev/null +++ b/test/filters/debug.exp | |||
@@ -0,0 +1,45 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2017 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --debug-syscalls\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "set_mempolicy" | ||
14 | } | ||
15 | after 100 | ||
16 | |||
17 | send -- "firejail --debug-syscalls\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 1\n";exit} | ||
20 | "setitimer" | ||
21 | } | ||
22 | after 100 | ||
23 | |||
24 | send -- "firejail --debug-errnos\r" | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 2\n";exit} | ||
27 | "EBADMSG" | ||
28 | } | ||
29 | after 100 | ||
30 | |||
31 | send -- "firejail --debug-errnos\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 3\n";exit} | ||
34 | "ELIBMAX" | ||
35 | } | ||
36 | after 100 | ||
37 | |||
38 | send -- "firejail --debug-protocols\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 4\n";exit} | ||
41 | "unix, inet, inet6, netlink, packet" | ||
42 | } | ||
43 | after 100 | ||
44 | |||
45 | puts "all done\n" | ||