aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.10.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
commit686bc51e38b0718651e82818871b0bf1451c8b21 (patch)
tree521f5fc2123c4782493fc86b46cc41533acb85db /test/features/1.10.exp
parent0.9.36 testing (diff)
downloadfirejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip
0.9.36 testing
Diffstat (limited to 'test/features/1.10.exp')
-rwxr-xr-xtest/features/1.10.exp38
1 files changed, 22 insertions, 16 deletions
diff --git a/test/features/1.10.exp b/test/features/1.10.exp
index a6e0f9281..96e3c38d1 100755
--- a/test/features/1.10.exp
+++ b/test/features/1.10.exp
@@ -6,6 +6,7 @@
6set timeout 10 6set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9set overlay [lindex $argv 0]
9 10
10# 11#
11# N 12# N
@@ -20,7 +21,8 @@ sleep 1
20send -- "ls -l /selinux\r" 21send -- "ls -l /selinux\r"
21expect { 22expect {
22 timeout {puts "TESTING ERROR 1\n";exit} 23 timeout {puts "TESTING ERROR 1\n";exit}
23 "Permission denied" 24 "Permission denied" {puts "denied\n"}
25 "No such file or directory" {puts "no file\n"}
24} 26}
25after 100 27after 100
26send -- "exit\r" 28send -- "exit\r"
@@ -30,21 +32,24 @@ sleep 1
30# 32#
31# O 33# O
32# 34#
33send -- "firejail --noprofile --overlay\r" 35if { $overlay == "overlay" } {
34expect { 36 send -- "firejail --noprofile --overlay\r"
35 timeout {puts "TESTING ERROR 2\n";exit} 37 expect {
36 "Child process initialized" 38 timeout {puts "TESTING ERROR 2\n";exit}
37} 39 "Child process initialized"
38sleep 1 40 }
39 41 sleep 1
40send -- "ls -l /selinux\r" 42
41expect { 43 send -- "ls -l /selinux\r"
42 timeout {puts "TESTING ERROR 3\n";exit} 44 expect {
43 "Permission denied" 45 timeout {puts "TESTING ERROR 3\n";exit}
46 "Permission denied" {puts "denied\n"}
47 "No such file or directory" {puts "no file\n"}
48 }
49 after 100
50 send -- "exit\r"
51 sleep 1
44} 52}
45after 100
46send -- "exit\r"
47sleep 1
48 53
49# 54#
50# C 55# C
@@ -59,7 +64,8 @@ sleep 1
59send -- "ls -l /selinux\r" 64send -- "ls -l /selinux\r"
60expect { 65expect {
61 timeout {puts "TESTING ERROR 5\n";exit} 66 timeout {puts "TESTING ERROR 5\n";exit}
62 "Permission denied" 67 "Permission denied" {puts "denied\n"}
68 "No such file or directory" {puts "no file\n"}
63} 69}
64after 100 70after 100
65send -- "exit\r" 71send -- "exit\r"