aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.8.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/1.8.exp')
-rwxr-xr-xtest/features/1.8.exp38
1 files changed, 27 insertions, 11 deletions
diff --git a/test/features/1.8.exp b/test/features/1.8.exp
index 514dd3b81..aefe9d8c5 100755
--- a/test/features/1.8.exp
+++ b/test/features/1.8.exp
@@ -10,7 +10,6 @@ match_max 100000
10# 10#
11# N 11# N
12# 12#
13send -- "touch /var/tmp/somefile\r"
14sleep 1 13sleep 1
15send -- "firejail --noprofile\r" 14send -- "firejail --noprofile\r"
16expect { 15expect {
@@ -19,10 +18,16 @@ expect {
19} 18}
20sleep 1 19sleep 1
21 20
22send -- "ls -l /var/tmp/somefile | wc -l\r" 21send -- "ls /etc/firejail\r"
23expect { 22expect {
24 timeout {puts "TESTING ERROR 1\n";exit} 23 timeout {puts "TESTING ERROR 1\n";exit}
25 "0" 24 "Permission denied"
25}
26after 100
27send -- "ls ~/.config/firejail\r"
28expect {
29 timeout {puts "TESTING ERROR 1.1\n";exit}
30 "Permission denied"
26} 31}
27after 100 32after 100
28send -- "exit\r" 33send -- "exit\r"
@@ -38,13 +43,19 @@ expect {
38 "Child process initialized" 43 "Child process initialized"
39} 44}
40sleep 1 45sleep 1
41 46send -- "ls /etc/firejail\r"
42send -- "ls -l /var/tmp/somefile | wc -l\r"
43expect { 47expect {
44 timeout {puts "TESTING ERROR 3\n";exit} 48 timeout {puts "TESTING ERROR 3\n";exit}
45 "0" 49 "Permission denied"
46} 50}
47after 100 51after 100
52send -- "ls ~/.config/firejail\r"
53expect {
54 timeout {puts "TESTING ERROR 3.1\n";exit}
55 "Permission denied"
56}
57after 100
58
48send -- "exit\r" 59send -- "exit\r"
49sleep 1 60sleep 1
50 61
@@ -53,15 +64,20 @@ sleep 1
53# 64#
54send -- "firejail --noprofile --chroot=/tmp/chroot\r" 65send -- "firejail --noprofile --chroot=/tmp/chroot\r"
55expect { 66expect {
56 timeout {puts "TESTING ERROR 3\n";exit} 67 timeout {puts "TESTING ERROR 4\n";exit}
57 "Child process initialized" 68 "Child process initialized"
58} 69}
59sleep 1 70sleep 1
60 71send -- "ls /etc/firejail\r"
61send -- "ls -l /var/tmp/somefile | wc -l\r"
62expect { 72expect {
63 timeout {puts "TESTING ERROR 4\n";exit} 73 timeout {puts "TESTING ERROR 5\n";exit}
64 "0" 74 "Permission denied"
75}
76after 100
77send -- "ls ~/.config/firejail\r"
78expect {
79 timeout {puts "TESTING ERROR 5.1\n";exit}
80 "Permission denied"
65} 81}
66after 100 82after 100
67send -- "exit\r" 83send -- "exit\r"