aboutsummaryrefslogtreecommitdiffstats
path: root/test/profiles/profile_syntax2.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-11-08 10:49:44 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2018-11-08 10:49:44 -0500
commit2acc910daf73c284965ca96bc70b4eb980c865cf (patch)
tree7b5733a8ccacba4089a7a9c067b12355372c8dc9 /test/profiles/profile_syntax2.exp
parentMerge pull request #2251 from glitsj16/sort (diff)
downloadfirejail-2acc910daf73c284965ca96bc70b4eb980c865cf.tar.gz
firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.tar.zst
firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.zip
profile parser testing
Diffstat (limited to 'test/profiles/profile_syntax2.exp')
-rwxr-xr-xtest/profiles/profile_syntax2.exp27
1 files changed, 3 insertions, 24 deletions
diff --git a/test/profiles/profile_syntax2.exp b/test/profiles/profile_syntax2.exp
index 4d621f3ec..da34b67e8 100755
--- a/test/profiles/profile_syntax2.exp
+++ b/test/profiles/profile_syntax2.exp
@@ -7,7 +7,7 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "firejail --debug --profile=test2.profile\r" 10send -- "firejail --profile=test2.profile\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Reading profile test2.profile" 13 "Reading profile test2.profile"
@@ -18,29 +18,8 @@ expect {
18} 18}
19expect { 19expect {
20 timeout {puts "TESTING ERROR 2\n";exit} 20 timeout {puts "TESTING ERROR 2\n";exit}
21 "Mounting a new /home directory" 21 "cannot access profile file"
22} 22}
23expect { 23
24 timeout {puts "TESTING ERROR 3\n";exit}
25 "Disable /bin/rmdir" {puts "Most Linux platforms\n"}
26 "Disable /usr/bin/rmdir" { puts "OpenSUSE platform\n"}
27}
28expect {
29 timeout {puts "TESTING ERROR 4\n";exit}
30 "Drop CAP_SYS_MODULE"
31}
32expect {
33 timeout {puts "TESTING ERROR 5\n";exit}
34 "seccomp entries in /run/firejail/mnt/seccomp"
35}
36expect {
37 timeout {puts "TESTING ERROR 7\n";exit}
38 "jeq mount"
39}
40expect {
41 timeout {puts "TESTING ERROR 8\n";exit}
42 "Child process initialized"
43}
44send -- "exit\r"
45after 100 24after 100
46puts "\nall done\n" 25puts "\nall done\n"