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