diff options
Diffstat (limited to 'test/network/net_noip2.exp')
-rwxr-xr-x | test/network/net_noip2.exp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/network/net_noip2.exp b/test/network/net_noip2.exp deleted file mode 100755 index a0828a0e7..000000000 --- a/test/network/net_noip2.exp +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | # check ip address | ||
11 | send -- "firejail --noprofile --net=br1 --ip=none --defaultgw=10.10.30.78\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | "eth0" {puts "TESTING ERROR 1\n";exit} | ||
15 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
16 | } | ||
17 | sleep 1 | ||
18 | send -- "bash\r" | ||
19 | sleep 1 | ||
20 | send -- "stty -echo\r" | ||
21 | after 100 | ||
22 | |||
23 | # no default gateway configured | ||
24 | send -- "netstat -rn;echo done\r" | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 2\n";exit} | ||
27 | "0.0.0.0" {puts "TESTING ERROR 3\n";exit} | ||
28 | "eth0" {puts "TESTING ERROR 4\n";exit} | ||
29 | "done" | ||
30 | } | ||
31 | sleep 1 | ||
32 | |||
33 | # eth0 configured | ||
34 | send -- "/sbin/ifconfig;echo done\r" | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 5\n";exit} | ||
37 | "eth0" | ||
38 | } | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 6\n";exit} | ||
41 | "10.10.30" {puts "TESTING ERROR 7\n";exit} | ||
42 | "done" | ||
43 | } | ||
44 | send -- "exit\r" | ||
45 | after 100 | ||
46 | |||
47 | puts "all done\n" | ||