aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/net_noip2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/net_noip2.exp')
-rwxr-xr-xtest/network/net_noip2.exp47
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10# check ip address
11send -- "firejail --noprofile --net=br1 --ip=none --defaultgw=10.10.30.78\r"
12expect {
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}
17sleep 1
18send -- "bash\r"
19sleep 1
20send -- "stty -echo\r"
21after 100
22
23# no default gateway configured
24send -- "netstat -rn;echo done\r"
25expect {
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}
31sleep 1
32
33# eth0 configured
34send -- "/sbin/ifconfig;echo done\r"
35expect {
36 timeout {puts "TESTING ERROR 5\n";exit}
37 "eth0"
38}
39expect {
40 timeout {puts "TESTING ERROR 6\n";exit}
41 "10.10.30" {puts "TESTING ERROR 7\n";exit}
42 "done"
43}
44send -- "exit\r"
45after 100
46
47puts "all done\n"