aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/ip6.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/ip6.exp')
-rwxr-xr-xtest/network/ip6.exp48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/network/ip6.exp b/test/network/ip6.exp
new file mode 100755
index 000000000..e2e83fe0e
--- /dev/null
+++ b/test/network/ip6.exp
@@ -0,0 +1,48 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2022 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 ip addr show\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "eth0"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "inet6"
22}
23expect {
24 timeout {puts "TESTING ERROR 3\n";exit}
25 "2001:db8:0:f101::1/64"
26}
27sleep 1
28
29send -- "firejail --profile=ip6.profile ip addr show\r"
30expect {
31 timeout {puts "TESTING ERROR 4\n";exit}
32 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
33}
34expect {
35 timeout {puts "TESTING ERROR 5\n";exit}
36 "eth0"
37}
38expect {
39 timeout {puts "TESTING ERROR 6\n";exit}
40 "inet6"
41}
42expect {
43 timeout {puts "TESTING ERROR 7\n";exit}
44 "2001:db8:0:f101::1/64"
45}
46after 500
47puts "\nall done\n"
48exit