aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.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/2.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/2.4.exp')
-rwxr-xr-xtest/features/2.4.exp148
1 files changed, 75 insertions, 73 deletions
diff --git a/test/features/2.4.exp b/test/features/2.4.exp
index a995322b9..424d4fead 100755
--- a/test/features/2.4.exp
+++ b/test/features/2.4.exp
@@ -7,6 +7,7 @@
7set timeout 10 7set timeout 10
8spawn $env(SHELL) 8spawn $env(SHELL)
9match_max 100000 9match_max 100000
10set overlay [lindex $argv 0]
10 11
11# 12#
12# N 13# N
@@ -89,80 +90,81 @@ sleep 1
89# 90#
90# O 91# O
91# 92#
92send -- "firejail --noprofile --net=br0 --overlay\r" 93if { $overlay == "overlay" } {
93expect { 94 send -- "firejail --noprofile --net=br0 --overlay\r"
94 timeout {puts "TESTING ERROR 2\n";exit} 95 expect {
95 "Child process initialized" 96 timeout {puts "TESTING ERROR 2\n";exit}
96} 97 "Child process initialized"
97sleep 1 98 }
98 99 sleep 1
99send -- "ping -c 3 10.10.20.1\r" 100
100expect { 101 send -- "ping -c 3 10.10.20.1\r"
101 timeout {puts "TESTING ERROR 3\n";exit} 102 expect {
102 " packets transmitted, 3 received, 0% packet loss" 103 timeout {puts "TESTING ERROR 3\n";exit}
103} 104 " packets transmitted, 3 received, 0% packet loss"
104sleep 1 105 }
105 106 sleep 1
106 107
107send -- "/sbin/ifconfig\r" 108
108expect { 109 send -- "/sbin/ifconfig\r"
109 timeout {puts "TESTING ERROR 3.4\n";exit} 110 expect {
110 "eth0" 111 timeout {puts "TESTING ERROR 3.4\n";exit}
112 "eth0"
113 }
114 expect {
115 timeout {puts "TESTING ERROR 3.5\n";exit}
116 "Link"
117 }
118 expect {
119 timeout {puts "TESTING ERROR 3.6\n";exit}
120 "10.10.20"
121 }
122 expect {
123 timeout {puts "TESTING ERROR 3.7\n";exit}
124 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
125 }
126 after 100
127
128 send -- "exit\r"
129 sleep 1
130
131 send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --overlay\r"
132 expect {
133 timeout {puts "TESTING ERROR 2\n";exit}
134 "Child process initialized"
135 }
136 sleep 1
137
138 send -- "ping -c 3 10.10.20.1\r"
139 expect {
140 timeout {puts "TESTING ERROR 3\n";exit}
141 " packets transmitted, 3 received, 0% packet loss"
142 }
143 sleep 1
144
145
146 send -- "/sbin/ifconfig\r"
147 expect {
148 timeout {puts "TESTING ERROR 3.4\n";exit}
149 "eth0"
150 }
151 expect {
152 timeout {puts "TESTING ERROR 3.5\n";exit}
153 "Link"
154 }
155 expect {
156 timeout {puts "TESTING ERROR 3.6\n";exit}
157 "10.10.20.4"
158 }
159 expect {
160 timeout {puts "TESTING ERROR 3.7\n";exit}
161 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
162 }
163 after 100
164
165 send -- "exit\r"
166 sleep 1
111} 167}
112expect {
113 timeout {puts "TESTING ERROR 3.5\n";exit}
114 "Link"
115}
116expect {
117 timeout {puts "TESTING ERROR 3.6\n";exit}
118 "10.10.20"
119}
120expect {
121 timeout {puts "TESTING ERROR 3.7\n";exit}
122 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
123}
124after 100
125
126send -- "exit\r"
127sleep 1
128
129send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --overlay\r"
130expect {
131 timeout {puts "TESTING ERROR 2\n";exit}
132 "Child process initialized"
133}
134sleep 1
135
136send -- "ping -c 3 10.10.20.1\r"
137expect {
138 timeout {puts "TESTING ERROR 3\n";exit}
139 " packets transmitted, 3 received, 0% packet loss"
140}
141sleep 1
142
143
144send -- "/sbin/ifconfig\r"
145expect {
146 timeout {puts "TESTING ERROR 3.4\n";exit}
147 "eth0"
148}
149expect {
150 timeout {puts "TESTING ERROR 3.5\n";exit}
151 "Link"
152}
153expect {
154 timeout {puts "TESTING ERROR 3.6\n";exit}
155 "10.10.20.4"
156}
157expect {
158 timeout {puts "TESTING ERROR 3.7\n";exit}
159 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
160}
161after 100
162
163send -- "exit\r"
164sleep 1
165
166 168
167 169
168# 170#