aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/net_scan.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/net_scan.exp')
-rwxr-xr-xtest/network/net_scan.exp18
1 files changed, 7 insertions, 11 deletions
diff --git a/test/network/net_scan.exp b/test/network/net_scan.exp
index 8d3e95f29..0369ab9aa 100755
--- a/test/network/net_scan.exp
+++ b/test/network/net_scan.exp
@@ -8,14 +8,14 @@ spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10# 10#
11send -- "firejail --net=br1 --ip=10.10.30.50\r" 11send -- "firejail --net=br0 --ip=10.10.20.50\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "eth0" 14 "eth0"
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 1\n";exit} 17 timeout {puts "TESTING ERROR 1\n";exit}
18 "10.10.30.50" 18 "10.10.20.50"
19} 19}
20expect { 20expect {
21 timeout {puts "TESTING ERROR 2\n";exit} 21 timeout {puts "TESTING ERROR 2\n";exit}
@@ -28,14 +28,14 @@ expect {
28sleep 1 28sleep 1
29 29
30spawn $env(SHELL) 30spawn $env(SHELL)
31send -- "firejail --net=br1 --ip=10.10.30.51\r" 31send -- "firejail --net=br0 --ip=10.10.20.60\r"
32expect { 32expect {
33 timeout {puts "TESTING ERROR 4\n";exit} 33 timeout {puts "TESTING ERROR 4\n";exit}
34 "eth0" 34 "eth0"
35} 35}
36expect { 36expect {
37 timeout {puts "TESTING ERROR 5\n";exit} 37 timeout {puts "TESTING ERROR 5\n";exit}
38 "10.10.30.51" 38 "10.10.20.60"
39} 39}
40expect { 40expect {
41 timeout {puts "TESTING ERROR 6\n";exit} 41 timeout {puts "TESTING ERROR 6\n";exit}
@@ -48,18 +48,18 @@ expect {
48sleep 1 48sleep 1
49 49
50spawn $env(SHELL) 50spawn $env(SHELL)
51send -- "firejail --net=br1 --scan\r" 51send -- "firejail --net=br0 --scan\r"
52expect { 52expect {
53 timeout {puts "TESTING ERROR 8\n";exit} 53 timeout {puts "TESTING ERROR 8\n";exit}
54 "eth0" 54 "eth0"
55} 55}
56expect { 56expect {
57 timeout {puts "TESTING ERROR 9\n";exit} 57 timeout {puts "TESTING ERROR 9\n";exit}
58 "10.10.30.50" 58 "10.10.20.50"
59} 59}
60expect { 60expect {
61 timeout {puts "TESTING ERROR 10\n";exit} 61 timeout {puts "TESTING ERROR 10\n";exit}
62 "10.10.30.51" 62 "10.10.20.60"
63} 63}
64expect { 64expect {
65 timeout {puts "TESTING ERROR 11\n";exit} 65 timeout {puts "TESTING ERROR 11\n";exit}
@@ -67,8 +67,4 @@ expect {
67} 67}
68sleep 1 68sleep 1
69 69
70
71
72after 100
73
74puts "\nall done\n" 70puts "\nall done\n"