diff options
Diffstat (limited to 'test/network/ip6.exp')
-rwxr-xr-x | test/network/ip6.exp | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/test/network/ip6.exp b/test/network/ip6.exp deleted file mode 100755 index 1f6581ae4..000000000 --- a/test/network/ip6.exp +++ /dev/null | |||
@@ -1,100 +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 | send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Installing IPv6 firewall" | ||
14 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "DROP" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "unable to initialize table 'filter'" {puts "\nTESTING SKIP 2: no IPv6 support\n"; exit} | ||
22 | "2001:db8:1f0a:3ec::2" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
27 | } | ||
28 | sleep 2 | ||
29 | |||
30 | send -- "/sbin/ifconfig\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 4\n";exit} | ||
33 | "inet6" | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 5\n";exit} | ||
37 | "2001:db8:0:f101::1" | ||
38 | } | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 6\n";exit} | ||
41 | "Scope:Global" { puts "Debian\n"} | ||
42 | "scopeid 0x0<global>" { puts "Arch\n"} | ||
43 | } | ||
44 | |||
45 | send -- "exit\r" | ||
46 | sleep 2 | ||
47 | |||
48 | |||
49 | |||
50 | |||
51 | send -- "firejail --debug --profile=ip6.profile\r" | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 10\n";exit} | ||
54 | "Installing IPv6 firewall" | ||
55 | } | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 11\n";exit} | ||
58 | "DROP" | ||
59 | } | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 12\n";exit} | ||
62 | "unable to initialize table 'filter'" {puts "\nTESTING SKIP 2: no IPv6 support\n"; exit} | ||
63 | "2001:db8:1f0a:3ec::2" | ||
64 | } | ||
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 13\n";exit} | ||
67 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
68 | } | ||
69 | sleep 2 | ||
70 | |||
71 | send -- "/sbin/ifconfig\r" | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 14\n";exit} | ||
74 | "inet6" | ||
75 | } | ||
76 | expect { | ||
77 | timeout {puts "TESTING ERROR 15\n";exit} | ||
78 | "2001:db8:0:f101::1" | ||
79 | } | ||
80 | expect { | ||
81 | timeout {puts "TESTING ERROR 16\n";exit} | ||
82 | "Scope:Global" { puts "Debian\n"} | ||
83 | "scopeid 0x0<global>" { puts "Arch\n"} | ||
84 | } | ||
85 | |||
86 | send -- "exit\r" | ||
87 | sleep 2 | ||
88 | |||
89 | send -- "firejail --debug --netfilter6=ipv6.net\r" | ||
90 | expect { | ||
91 | timeout {puts "TESTING ERROR 11\n";exit} | ||
92 | "Installing IPv6 firewall" {puts "TESTING ERROR 12\n";exit} | ||
93 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
94 | } | ||
95 | after 100 | ||
96 | send -- "exit\r" | ||
97 | |||
98 | |||
99 | after 100 | ||
100 | puts "\nall done\n" | ||