diff options
Diffstat (limited to 'test/network/net_mtu.exp')
-rwxr-xr-x | test/network/net_mtu.exp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/network/net_mtu.exp b/test/network/net_mtu.exp deleted file mode 100755 index b87db1296..000000000 --- a/test/network/net_mtu.exp +++ /dev/null | |||
@@ -1,34 +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 --mtu=1000 --noprofile\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
15 | } | ||
16 | sleep 1 | ||
17 | |||
18 | send -- "ip link show\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "eth0" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "mtu 1000" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 4\n";exit} | ||
29 | "state UP" | ||
30 | } | ||
31 | send -- "exit\r" | ||
32 | after 100 | ||
33 | |||
34 | puts "\nall done\n" | ||