aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/ip6.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/ip6.exp')
-rwxr-xr-xtest/network/ip6.exp100
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Installing IPv6 firewall"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "DROP"
18}
19expect {
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}
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27}
28sleep 2
29
30send -- "/sbin/ifconfig\r"
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "inet6"
34}
35expect {
36 timeout {puts "TESTING ERROR 5\n";exit}
37 "2001:db8:0:f101::1"
38}
39expect {
40 timeout {puts "TESTING ERROR 6\n";exit}
41 "Scope:Global" { puts "Debian\n"}
42 "scopeid 0x0<global>" { puts "Arch\n"}
43}
44
45send -- "exit\r"
46sleep 2
47
48
49
50
51send -- "firejail --debug --profile=ip6.profile\r"
52expect {
53 timeout {puts "TESTING ERROR 10\n";exit}
54 "Installing IPv6 firewall"
55}
56expect {
57 timeout {puts "TESTING ERROR 11\n";exit}
58 "DROP"
59}
60expect {
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}
65expect {
66 timeout {puts "TESTING ERROR 13\n";exit}
67 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
68}
69sleep 2
70
71send -- "/sbin/ifconfig\r"
72expect {
73 timeout {puts "TESTING ERROR 14\n";exit}
74 "inet6"
75}
76expect {
77 timeout {puts "TESTING ERROR 15\n";exit}
78 "2001:db8:0:f101::1"
79}
80expect {
81 timeout {puts "TESTING ERROR 16\n";exit}
82 "Scope:Global" { puts "Debian\n"}
83 "scopeid 0x0<global>" { puts "Arch\n"}
84}
85
86send -- "exit\r"
87sleep 2
88
89send -- "firejail --debug --netfilter6=ipv6.net\r"
90expect {
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}
95after 100
96send -- "exit\r"
97
98
99after 100
100puts "\nall done\n"