diff options
Diffstat (limited to 'test/features/2.4.exp')
-rwxr-xr-x | test/features/2.4.exp | 148 |
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 @@ | |||
7 | set timeout 10 | 7 | set timeout 10 |
8 | spawn $env(SHELL) | 8 | spawn $env(SHELL) |
9 | match_max 100000 | 9 | match_max 100000 |
10 | set 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 | # |
92 | send -- "firejail --noprofile --net=br0 --overlay\r" | 93 | if { $overlay == "overlay" } { |
93 | expect { | 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" |
97 | sleep 1 | 98 | } |
98 | 99 | sleep 1 | |
99 | send -- "ping -c 3 10.10.20.1\r" | 100 | |
100 | expect { | 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" |
104 | sleep 1 | 105 | } |
105 | 106 | sleep 1 | |
106 | 107 | ||
107 | send -- "/sbin/ifconfig\r" | 108 | |
108 | expect { | 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 | } |
112 | expect { | ||
113 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
114 | "Link" | ||
115 | } | ||
116 | expect { | ||
117 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
118 | "10.10.20" | ||
119 | } | ||
120 | expect { | ||
121 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
122 | "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" | ||
123 | } | ||
124 | after 100 | ||
125 | |||
126 | send -- "exit\r" | ||
127 | sleep 1 | ||
128 | |||
129 | send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --overlay\r" | ||
130 | expect { | ||
131 | timeout {puts "TESTING ERROR 2\n";exit} | ||
132 | "Child process initialized" | ||
133 | } | ||
134 | sleep 1 | ||
135 | |||
136 | send -- "ping -c 3 10.10.20.1\r" | ||
137 | expect { | ||
138 | timeout {puts "TESTING ERROR 3\n";exit} | ||
139 | " packets transmitted, 3 received, 0% packet loss" | ||
140 | } | ||
141 | sleep 1 | ||
142 | |||
143 | |||
144 | send -- "/sbin/ifconfig\r" | ||
145 | expect { | ||
146 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
147 | "eth0" | ||
148 | } | ||
149 | expect { | ||
150 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
151 | "Link" | ||
152 | } | ||
153 | expect { | ||
154 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
155 | "10.10.20.4" | ||
156 | } | ||
157 | expect { | ||
158 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
159 | "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" | ||
160 | } | ||
161 | after 100 | ||
162 | |||
163 | send -- "exit\r" | ||
164 | sleep 1 | ||
165 | |||
166 | 168 | ||
167 | 169 | ||
168 | # | 170 | # |