summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-01-24 11:24:25 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-01-24 11:24:25 -0500
commit07b3e778037b13b1d95071d8acbf4ff8128fa3a1 (patch)
treee04a9d41814920b0f25672176cc9435c9fd49f71 /test
parent make the sandbox process reap all children (diff)
downloadfirejail-07b3e778037b13b1d95071d8acbf4ff8128fa3a1.tar.gz
firejail-07b3e778037b13b1d95071d8acbf4ff8128fa3a1.tar.zst
firejail-07b3e778037b13b1d95071d8acbf4ff8128fa3a1.zip
testing
Diffstat (limited to 'test')
-rwxr-xr-xtest/fscheck-shell.exp12
-rwxr-xr-xtest/ip6.exp16
-rw-r--r--test/name.profile2
-rwxr-xr-xtest/option-join-profile.exp8
-rwxr-xr-xtest/option-shutdown.exp8
-rwxr-xr-xtest/test.sh1
6 files changed, 22 insertions, 25 deletions
diff --git a/test/fscheck-shell.exp b/test/fscheck-shell.exp
index 548955e60..6a3b5829c 100755
--- a/test/fscheck-shell.exp
+++ b/test/fscheck-shell.exp
@@ -37,12 +37,12 @@ expect {
37after 100 37after 100
38 38
39# file link 39# file link
40send -- "firejail --net=br0 --shell=fscheck-file-link\r" 40#send -- "firejail --net=br0 --shell=fscheck-file-link\r"
41expect { 41#expect {
42 timeout {puts "TESTING ERROR 4\n";exit} 42# timeout {puts "TESTING ERROR 4\n";exit}
43 "Error" 43# "Error"
44} 44#}
45after 100 45#after 100
46 46
47# .. 47# ..
48send -- "firejail --net=br0 --shell=../test/fscheck-file-link\r" 48send -- "firejail --net=br0 --shell=../test/fscheck-file-link\r"
diff --git a/test/ip6.exp b/test/ip6.exp
index 4dc11d3dc..19a822ee2 100755
--- a/test/ip6.exp
+++ b/test/ip6.exp
@@ -14,30 +14,26 @@ expect {
14 "DROP" 14 "DROP"
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 1\n";exit} 17 timeout {puts "TESTING ERROR 2\n";exit}
18 "DROP" 18 "2001:db8:1f0a:3ec::2"
19}
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "2001:db8:1f0a:3ec::2/128"
23} 19}
24expect { 20expect {
25 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 3\n";exit}
26 "Child process initialized" 22 "Child process initialized"
27} 23}
28sleep 2 24sleep 2
29 25
30send -- "/sbin/ifconfig\r" 26send -- "/sbin/ifconfig\r"
31expect { 27expect {
32 timeout {puts "TESTING ERROR 1\n";exit} 28 timeout {puts "TESTING ERROR 4\n";exit}
33 "inet6 addr" 29 "inet6 addr"
34} 30}
35expect { 31expect {
36 timeout {puts "TESTING ERROR 1\n";exit} 32 timeout {puts "TESTING ERROR 5\n";exit}
37 "2001:db8:0:f101::1/64" 33 "2001:db8:0:f101::1/64"
38} 34}
39expect { 35expect {
40 timeout {puts "TESTING ERROR 1\n";exit} 36 timeout {puts "TESTING ERROR 6\n";exit}
41 "Scope:Global" 37 "Scope:Global"
42} 38}
43 39
diff --git a/test/name.profile b/test/name.profile
index 69e605600..1aa9f2d64 100644
--- a/test/name.profile
+++ b/test/name.profile
@@ -1 +1 @@
name svntesting name jointesting
diff --git a/test/option-join-profile.exp b/test/option-join-profile.exp
index 8f9c10bf7..9200980a1 100755
--- a/test/option-join-profile.exp
+++ b/test/option-join-profile.exp
@@ -12,16 +12,16 @@ expect {
12sleep 3 12sleep 3
13 13
14spawn $env(SHELL) 14spawn $env(SHELL)
15send -- "firejail --join=svntesting;pwd\r" 15send -- "firejail --join=jointesting;pwd\r"
16expect { 16expect {
17 timeout {puts "TESTING ERROR 1\n";exit} 17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Switching to pid" 18 "Switching to pid"
19} 19}
20sleep 1 20sleep 3
21 21
22 22
23spawn $env(SHELL) 23spawn $env(SHELL)
24send -- "firejail --shutdown=svntesting;pwd\r" 24send -- "firejail --shutdown=jointesting;pwd\r"
25expect { 25expect {
26 timeout {puts "TESTING ERROR 3\n";exit} 26 timeout {puts "TESTING ERROR 3\n";exit}
27 "home" 27 "home"
@@ -31,7 +31,7 @@ sleep 5
31send -- "firejail --list;pwd\r" 31send -- "firejail --list;pwd\r"
32expect { 32expect {
33 timeout {puts "TESTING ERROR 4\n";exit} 33 timeout {puts "TESTING ERROR 4\n";exit}
34 "svntesting" {puts "TESTING ERROR 5\n";exit} 34 "jointesting" {puts "TESTING ERROR 5\n";exit}
35 "home" 35 "home"
36} 36}
37sleep 1 37sleep 1
diff --git a/test/option-shutdown.exp b/test/option-shutdown.exp
index 260a5b84f..e869f7611 100755
--- a/test/option-shutdown.exp
+++ b/test/option-shutdown.exp
@@ -4,7 +4,7 @@ set timeout 10
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "firejail --name=svntesting\r" 7send -- "firejail --name=shutdowntesting\r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized" 10 "Child process initialized"
@@ -12,7 +12,7 @@ expect {
12sleep 3 12sleep 3
13 13
14spawn $env(SHELL) 14spawn $env(SHELL)
15send -- "firejail --shutdown=svntesting;pwd\r" 15send -- "firejail --shutdown=shutdowntesting;pwd\r"
16expect { 16expect {
17 timeout {puts "TESTING ERROR 4\n";exit} 17 timeout {puts "TESTING ERROR 4\n";exit}
18 "home" 18 "home"
@@ -22,9 +22,9 @@ sleep 1
22send -- "firejail --list;pwd\r" 22send -- "firejail --list;pwd\r"
23expect { 23expect {
24 timeout {puts "TESTING ERROR 5\n";exit} 24 timeout {puts "TESTING ERROR 5\n";exit}
25 "svntesting" {puts "TESTING ERROR 6\n";exit} 25 "shutdowntesting" {puts "TESTING ERROR 6\n";exit}
26 "home" 26 "home"
27} 27}
28sleep 1 28sleep 1
29 29
30puts "\n" 30puts "\nalldone\n"
diff --git a/test/test.sh b/test/test.sh
index 2c051d13b..98addc38a 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -272,6 +272,7 @@ echo "TESTING: network IP"
272./net_ip.exp 272./net_ip.exp
273 273
274echo "TESTING: network MAC" 274echo "TESTING: network MAC"
275sleep 2
275./net_mac.exp 276./net_mac.exp
276 277
277echo "TESTING: network MTU" 278echo "TESTING: network MTU"