diff options
author | netblue30 <netblue30@protonmail.com> | 2023-03-02 10:34:03 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-03-02 10:34:03 -0500 |
commit | 336ecb5d651f22e5a3722ead843181a86dcc066d (patch) | |
tree | e733078e8b3ae1c6d0d7e236911c0f12ae556baa /test/network/net_defaultgw.exp | |
parent | gajim: allow loading plugins (#5705) (diff) | |
download | firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.tar.gz firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.tar.zst firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.zip |
network testing; merges
Diffstat (limited to 'test/network/net_defaultgw.exp')
-rwxr-xr-x | test/network/net_defaultgw.exp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/network/net_defaultgw.exp b/test/network/net_defaultgw.exp deleted file mode 100755 index ee1ac9882..000000000 --- a/test/network/net_defaultgw.exp +++ /dev/null | |||
@@ -1,50 +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 --net=br0 --ip=10.10.20.5 --defaultgw=10.10.20.2 --protocol=unix,inet,netlink\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | "eth0" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "10.10.20.5" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 2\n";exit} | ||
22 | "255.255.255.248" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "UP" | ||
27 | } | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 4\n";exit} | ||
30 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
31 | } | ||
32 | sleep 1 | ||
33 | |||
34 | # check default gateway | ||
35 | send -- "ip route show\r" | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 10.1\n";exit} | ||
38 | "default via 10.10.20.2 dev eth0" | ||
39 | } | ||
40 | |||
41 | send -- "ip route show\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 10.2\n";exit} | ||
44 | "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";} | ||
45 | "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";} | ||
46 | } | ||
47 | send -- "exit\r" | ||
48 | after 100 | ||
49 | |||
50 | puts "\nall done\n" | ||