aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/net_defaultgw2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/net_defaultgw2.exp')
-rwxr-xr-xtest/network/net_defaultgw2.exp45
1 files changed, 0 insertions, 45 deletions
diff --git a/test/network/net_defaultgw2.exp b/test/network/net_defaultgw2.exp
deleted file mode 100755
index 30c945718..000000000
--- a/test/network/net_defaultgw2.exp
+++ /dev/null
@@ -1,45 +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 --net=br0 --net=br1 --defaultgw=10.10.30.89 --protocol=unix,inet,netlink\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 "eth1"
15}
16expect {
17 timeout {puts "TESTING ERROR 4\n";exit}
18 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
19}
20sleep 1
21
22# check default gateway
23send -- "ip route show\r"
24expect {
25 timeout {puts "TESTING ERROR 10.1\n";exit}
26 "default via 10.10.30.89 dev eth1"
27}
28
29send -- "ip route show\r"
30expect {
31 timeout {puts "TESTING ERROR 10.2\n";exit}
32 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";}
33 "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";}
34}
35
36send -- "ip route show\r"
37expect {
38 timeout {puts "TESTING ERROR 10.3\n";exit}
39 "10.10.30.0/24 dev eth1 proto kernel scope link" {puts "old iproute2\n";}
40 "10.10.30.0/24 dev eth1 proto kernel scope link" {puts "new iproute2\n";}
41}
42send -- "exit\r"
43after 100
44
45puts "\nall done\n"