aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.2.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/2.2.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/2.2.exp')
-rwxr-xr-xtest/features/2.2.exp47
1 files changed, 25 insertions, 22 deletions
diff --git a/test/features/2.2.exp b/test/features/2.2.exp
index c562328fd..186da98fb 100755
--- a/test/features/2.2.exp
+++ b/test/features/2.2.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
@@ -38,29 +39,31 @@ sleep 1
38# 39#
39# O 40# O
40# 41#
41send -- "firejail --noprofile --dns=4.2.2.1 --overlay\r" 42if { $overlay == "overlay" } {
42expect { 43 send -- "firejail --noprofile --dns=4.2.2.1 --overlay\r"
43 timeout {puts "TESTING ERROR 2\n";exit} 44 expect {
44 "Child process initialized" 45 timeout {puts "TESTING ERROR 2\n";exit}
46 "Child process initialized"
47 }
48 sleep 1
49
50 send -- "dig google.com\r"
51 expect {
52 timeout {puts "TESTING ERROR 3\n";exit}
53 "ANSWER SECTION"
54 }
55 expect {
56 timeout {puts "TESTING ERROR 3.1\n";exit}
57 "google.com"
58 }
59 expect {
60 timeout {puts "TESTING ERROR 3.3\n";exit}
61 "SERVER: 4.2.2.1"
62 }
63 after 100
64 send -- "exit\r"
65 sleep 1
45} 66}
46sleep 1
47
48send -- "dig google.com\r"
49expect {
50 timeout {puts "TESTING ERROR 3\n";exit}
51 "ANSWER SECTION"
52}
53expect {
54 timeout {puts "TESTING ERROR 3.1\n";exit}
55 "google.com"
56}
57expect {
58 timeout {puts "TESTING ERROR 3.3\n";exit}
59 "SERVER: 4.2.2.1"
60}
61after 100
62send -- "exit\r"
63sleep 1
64 67
65# 68#
66# C 69# C