aboutsummaryrefslogtreecommitdiffstats
path: root/test/profile_syntax2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile_syntax2.exp')
-rwxr-xr-xtest/profile_syntax2.exp47
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --debug --profile=test2.profile\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Reading profile test2.profile"
11}
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "Reading profile test.profile"
15}
16expect {
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}
21expect {
22 timeout {puts "TESTING ERROR 3\n";exit}
23 "Mounting a new /home directory"
24}
25expect {
26 timeout {puts "TESTING ERROR 4\n";exit}
27 "Drop CAP_SYS_MODULE"
28}
29expect {
30 timeout {puts "TESTING ERROR 5\n";exit}
31 "Initialize seccomp filter"
32}
33expect {
34 timeout {puts "TESTING ERROR 6\n";exit}
35 "Blacklisting syscall"
36}
37expect {
38 timeout {puts "TESTING ERROR 7\n";exit}
39 "mount"
40}
41expect {
42 timeout {puts "TESTING ERROR 8\n";exit}
43 "Child process initialized"
44}
45
46sleep 1
47puts "\n"