diff options
Diffstat (limited to 'test/profile_syntax2.exp')
-rwxr-xr-x | test/profile_syntax2.exp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/profile_syntax2.exp b/test/profile_syntax2.exp new file mode 100755 index 000000000..cd514aa0e --- /dev/null +++ b/test/profile_syntax2.exp | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --debug --profile=test2.profile\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Reading profile test2.profile" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "Reading profile test.profile" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 2\n";exit} | ||
18 | "Disable /bin/rmdir" {puts "Most Linux platforms\n"} | ||
19 | "Disable /usr/bin/rmdir" { puts "OpenSUSE platform\n"} | ||
20 | } | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 3\n";exit} | ||
23 | "Mounting a new /home directory" | ||
24 | } | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 4\n";exit} | ||
27 | "Drop CAP_SYS_MODULE" | ||
28 | } | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 5\n";exit} | ||
31 | "Initialize seccomp filter" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 6\n";exit} | ||
35 | "Blacklisting syscall" | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 7\n";exit} | ||
39 | "mount" | ||
40 | } | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 8\n";exit} | ||
43 | "Child process initialized" | ||
44 | } | ||
45 | |||
46 | sleep 1 | ||
47 | puts "\n" | ||