diff options
Diffstat (limited to 'test/network/net_noip.exp')
-rwxr-xr-x | test/network/net_noip.exp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/test/network/net_noip.exp b/test/network/net_noip.exp deleted file mode 100755 index 7da2e85ef..000000000 --- a/test/network/net_noip.exp +++ /dev/null | |||
@@ -1,48 +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=br0 --ip=none\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 | |||
21 | send -- "stty -echo\r" | ||
22 | after 100 | ||
23 | |||
24 | # no default gateway configured | ||
25 | send -- "netstat -rn;echo done\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 2\n";exit} | ||
28 | "0.0.0.0" {puts "TESTING ERROR 3\n";exit} | ||
29 | "eth0" {puts "TESTING ERROR 4\n";exit} | ||
30 | "done" | ||
31 | } | ||
32 | sleep 1 | ||
33 | |||
34 | # eth0 configured | ||
35 | send -- "/sbin/ifconfig;echo done\r" | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 5\n";exit} | ||
38 | "eth0" | ||
39 | } | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 6\n";exit} | ||
42 | "10.10.20" {puts "TESTING ERROR 7\n";exit} | ||
43 | "done" | ||
44 | } | ||
45 | send -- "exit\r" | ||
46 | after 100 | ||
47 | |||
48 | puts "all done\n" | ||