diff options
author | netblue30 <netblue30@yahoo.com> | 2017-11-15 07:09:41 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-11-15 07:09:41 -0500 |
commit | 77a891838f0456944777830152171c23fb52a71a (patch) | |
tree | 679ccfae005f3a1d0a17bcfa8c6000e8b2205d8a /test | |
parent | netfilter split (diff) | |
download | firejail-77a891838f0456944777830152171c23fb52a71a.tar.gz firejail-77a891838f0456944777830152171c23fb52a71a.tar.zst firejail-77a891838f0456944777830152171c23fb52a71a.zip |
netfilter split, --netfilter.print, --netfilter6.print
Diffstat (limited to 'test')
-rwxr-xr-x | test/network/ip6.exp | 16 | ||||
-rwxr-xr-x | test/network/net_netfilter.exp | 6 |
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 | |||
10 | send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r" | 10 | send -- "firejail --debug --noprofile --net=br0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | expect { | 15 | expect { |
16 | timeout {puts "TESTING ERROR 1\n";exit} | 16 | timeout {puts "TESTING ERROR 1\n";exit} |
@@ -46,10 +46,12 @@ send -- "exit\r" | |||
46 | sleep 2 | 46 | sleep 2 |
47 | 47 | ||
48 | 48 | ||
49 | |||
50 | |||
49 | send -- "firejail --debug --profile=ip6.profile\r" | 51 | send -- "firejail --debug --profile=ip6.profile\r" |
50 | expect { | 52 | expect { |
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 | } |
54 | expect { | 56 | expect { |
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 | ||
84 | send -- "exit\r" | 86 | send -- "exit\r" |
87 | sleep 2 | ||
85 | 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 | "Child process initialized" | ||
94 | } | ||
86 | after 100 | 95 | after 100 |
96 | send -- "exit\r" | ||
87 | 97 | ||
98 | |||
99 | after 100 | ||
88 | puts "\nall done\n" | 100 | puts "\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 | |||
11 | send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter\r" | 11 | send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter\r" |
12 | expect { | 12 | expect { |
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 | } |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 1\n";exit} | 17 | timeout {puts "TESTING ERROR 1\n";exit} |
@@ -51,7 +51,7 @@ sleep 1 | |||
51 | send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter=netfilter.filter\r" | 51 | send -- "firejail --debug --noprofile --net=br0 --ip=10.10.20.5 --netfilter=netfilter.filter\r" |
52 | expect { | 52 | expect { |
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 | } |
56 | expect { | 56 | expect { |
57 | timeout {puts "TESTING ERROR 6.1\n";exit} | 57 | timeout {puts "TESTING ERROR 6.1\n";exit} |
@@ -71,7 +71,7 @@ sleep 1 | |||
71 | send -- "firejail --debug --net=br0 --ip=10.10.20.5 --profile=netfilter.profile\r" | 71 | send -- "firejail --debug --net=br0 --ip=10.10.20.5 --profile=netfilter.profile\r" |
72 | expect { | 72 | expect { |
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 | } |
76 | expect { | 76 | expect { |
77 | timeout {puts "TESTING ERROR 7.1\n";exit} | 77 | timeout {puts "TESTING ERROR 7.1\n";exit} |