summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-11-15 07:09:41 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-11-15 07:09:41 -0500
commit77a891838f0456944777830152171c23fb52a71a (patch)
tree679ccfae005f3a1d0a17bcfa8c6000e8b2205d8a /test
parentnetfilter split (diff)
downloadfirejail-77a891838f0456944777830152171c23fb52a71a.tar.gz
firejail-77a891838f0456944777830152171c23fb52a71a.tar.zst
firejail-77a891838f0456944777830152171c23fb52a71a.zip
netfilter split, --netfilter.print, --netfilter6.print
Diffstat (limited to 'test')
-rwxr-xr-xtest/network/ip6.exp16
-rwxr-xr-xtest/network/net_netfilter.exp6
2 files changed, 17 insertions, 5 deletions
diff --git a/test/network/ip6.exp b/test/network/ip6.exp
index 26780e167..c55f690db 100755
--- a/test/network/ip6.exp
+++ b/test/network/ip6.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r" 10send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Installing network filter" 13 "Installing IPv6 firewall"
14} 14}
15expect { 15expect {
16 timeout {puts "TESTING ERROR 1\n";exit} 16 timeout {puts "TESTING ERROR 1\n";exit}
@@ -46,10 +46,12 @@ send -- "exit\r"
46sleep 2 46sleep 2
47 47
48 48
49
50
49send -- "firejail --debug --profile=ip6.profile\r" 51send -- "firejail --debug --profile=ip6.profile\r"
50expect { 52expect {
51 timeout {puts "TESTING ERROR 10\n";exit} 53 timeout {puts "TESTING ERROR 10\n";exit}
52 "Installing network filter" 54 "Installing IPv6 firewall"
53} 55}
54expect { 56expect {
55 timeout {puts "TESTING ERROR 11\n";exit} 57 timeout {puts "TESTING ERROR 11\n";exit}
@@ -82,7 +84,17 @@ expect {
82} 84}
83 85
84send -- "exit\r" 86send -- "exit\r"
87sleep 2
85 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 "Child process initialized"
94}
86after 100 95after 100
96send -- "exit\r"
87 97
98
99after 100
88puts "\nall done\n" 100puts "\nall done\n"
diff --git a/test/network/net_netfilter.exp b/test/network/net_netfilter.exp
index 52fd3bf11..8f371bafc 100755
--- a/test/network/net_netfilter.exp
+++ b/test/network/net_netfilter.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter\r" 11send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Installing network filter" 14 "Installing firewall"
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 1\n";exit} 17 timeout {puts "TESTING ERROR 1\n";exit}
@@ -51,7 +51,7 @@ sleep 1
51send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter=netfilter.filter\r" 51send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter=netfilter.filter\r"
52expect { 52expect {
53 timeout {puts "TESTING ERROR 6\n";exit} 53 timeout {puts "TESTING ERROR 6\n";exit}
54 "Installing network filter" 54 "Installing firewall"
55} 55}
56expect { 56expect {
57 timeout {puts "TESTING ERROR 6.1\n";exit} 57 timeout {puts "TESTING ERROR 6.1\n";exit}
@@ -71,7 +71,7 @@ sleep 1
71send -- "firejail --debug --net=br0 --ip=10.10.20.5 --profile=netfilter.profile\r" 71send -- "firejail --debug --net=br0 --ip=10.10.20.5 --profile=netfilter.profile\r"
72expect { 72expect {
73 timeout {puts "TESTING ERROR 7\n";exit} 73 timeout {puts "TESTING ERROR 7\n";exit}
74 "Installing network filter" 74 "Installing firewall"
75} 75}
76expect { 76expect {
77 timeout {puts "TESTING ERROR 7.1\n";exit} 77 timeout {puts "TESTING ERROR 7.1\n";exit}