aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/ip6.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-03 08:41:24 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-03 08:41:24 -0400
commit57bea6c8c4d1bd666ce57057b1cbb681b3cc4afc (patch)
tree60f90718665a1a812b552f589bc4d85616232df1 /test/network/ip6.exp
parentMerge branch 'master' of https://github.com/netblue30/firejail (diff)
downloadfirejail-57bea6c8c4d1bd666ce57057b1cbb681b3cc4afc.tar.gz
firejail-57bea6c8c4d1bd666ce57057b1cbb681b3cc4afc.tar.zst
firejail-57bea6c8c4d1bd666ce57057b1cbb681b3cc4afc.zip
networking features testing
Diffstat (limited to 'test/network/ip6.exp')
-rwxr-xr-xtest/network/ip6.exp43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/network/ip6.exp b/test/network/ip6.exp
new file mode 100755
index 000000000..fba47d095
--- /dev/null
+++ b/test/network/ip6.exp
@@ -0,0 +1,43 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Installing network filter"
11}
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "DROP"
15}
16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "2001:db8:1f0a:3ec::2"
19}
20expect {
21 timeout {puts "TESTING ERROR 3\n";exit}
22 "Child process initialized"
23}
24sleep 2
25
26send -- "/sbin/ifconfig\r"
27expect {
28 timeout {puts "TESTING ERROR 4\n";exit}
29 "inet6"
30}
31expect {
32 timeout {puts "TESTING ERROR 5\n";exit}
33 "2001:db8:0:f101::1"
34}
35expect {
36 timeout {puts "TESTING ERROR 6\n";exit}
37 "Scope:Global" { puts "Debian\n"}
38 "scopeid 0x0<global>" { puts "Arch\n"}
39}
40
41
42puts "\nall done\n"
43