diff options
Diffstat (limited to 'test/network/interface.exp')
-rwxr-xr-x | test/network/interface.exp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/test/network/interface.exp b/test/network/interface.exp deleted file mode 100755 index 2bcc6e88b..000000000 --- a/test/network/interface.exp +++ /dev/null | |||
@@ -1,63 +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 | # interface | ||
7 | # | ||
8 | |||
9 | set timeout 10 | ||
10 | spawn $env(SHELL) | ||
11 | match_max 100000 | ||
12 | set overlay [lindex $argv 0] | ||
13 | set chroot [lindex $argv 1] | ||
14 | |||
15 | # | ||
16 | # N | ||
17 | # | ||
18 | # todo: seems to be unable to find interface eth0.7 | ||
19 | #send -- "firejail --noprofile --interface=eth0.5 --interface=eth0.6 --interface=eth0.7\r" | ||
20 | send -- "firejail --noprofile --interface=eth0.5 --interface=eth0.6\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 0\n";exit} | ||
23 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
24 | } | ||
25 | sleep 1 | ||
26 | |||
27 | send -- "/sbin/ifconfig\r" | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 1\n";exit} | ||
30 | "eth0.5" | ||
31 | } | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 2\n";exit} | ||
34 | "Link" {puts "old net-tools\n";} | ||
35 | "flags" {puts "new net-tools\n";} | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 3\n";exit} | ||
39 | "10.10.205.10" | ||
40 | } | ||
41 | after 100 | ||
42 | |||
43 | send -- "/sbin/ifconfig\r" | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 5\n";exit} | ||
46 | "eth0.6" | ||
47 | } | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 6\n";exit} | ||
50 | "Link" {puts "old net-tools\n";} | ||
51 | "flags" {puts "new net-tools\n";} | ||
52 | } | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 7\n";exit} | ||
55 | "10.10.206.10" | ||
56 | } | ||
57 | after 100 | ||
58 | |||
59 | send -- "exit\r" | ||
60 | sleep 1 | ||
61 | |||
62 | |||
63 | puts "\nall done\n" | ||