aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.4.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.4.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.4.exp')
-rwxr-xr-xtest/features/1.4.exp55
1 files changed, 29 insertions, 26 deletions
diff --git a/test/features/1.4.exp b/test/features/1.4.exp
index 82d683175..113a328c9 100755
--- a/test/features/1.4.exp
+++ b/test/features/1.4.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
@@ -43,33 +44,35 @@ sleep 1
43# 44#
44# O 45# O
45# 46#
46send -- "firejail --noprofile --overlay\r" 47if { $overlay == "overlay" } {
47expect { 48 send -- "firejail --noprofile --overlay\r"
48 timeout {puts "TESTING ERROR 2\n";exit} 49 expect {
49 "Child process initialized" 50 timeout {puts "TESTING ERROR 2\n";exit}
51 "Child process initialized"
52 }
53 sleep 1
54
55 send -- "ls -l /home | wc -l\r"
56 expect {
57 timeout {puts "TESTING ERROR 3\n";exit}
58 "2"
59 }
60 after 100
61 send -- "cat /etc/passwd | grep 1001 | wc -l\r"
62 expect {
63 timeout {puts "TESTING ERROR 3.1\n";exit}
64 "0"
65 }
66 after 100
67 send -- "cat /etc/group | grep 1001 | wc -l\r"
68 expect {
69 timeout {puts "TESTING ERROR 3.2\n";exit}
70 "0"
71 }
72 after 100
73 send -- "exit\r"
74 sleep 1
50} 75}
51sleep 1
52
53send -- "ls -l /home | wc -l\r"
54expect {
55 timeout {puts "TESTING ERROR 3\n";exit}
56 "2"
57}
58after 100
59send -- "cat /etc/passwd | grep 1001 | wc -l\r"
60expect {
61 timeout {puts "TESTING ERROR 3.1\n";exit}
62 "0"
63}
64after 100
65send -- "cat /etc/group | grep 1001 | wc -l\r"
66expect {
67 timeout {puts "TESTING ERROR 3.2\n";exit}
68 "0"
69}
70after 100
71send -- "exit\r"
72sleep 1
73 76
74# 77#
75# C 78# C