aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/apps-x11/xterm-xpra.exp12
-rwxr-xr-xtest/environment/environment.sh6
-rwxr-xr-xtest/rlimit/rlimit-profile.exp (renamed from test/environment/rlimit-profile.exp)0
-rwxr-xr-xtest/rlimit/rlimit.exp (renamed from test/environment/rlimit.exp)0
-rw-r--r--test/rlimit/rlimit.profile (renamed from test/environment/rlimit.profile)0
-rwxr-xr-xtest/root/apache2.exp4
-rwxr-xr-xtest/root/isc-dhcp.exp9
-rwxr-xr-xtest/root/nginx.exp4
-rwxr-xr-xtest/root/root.sh6
-rwxr-xr-xtest/root/snmpd.exp10
-rwxr-xr-xtest/root/unbound.exp9
11 files changed, 18 insertions, 42 deletions
diff --git a/test/apps-x11/xterm-xpra.exp b/test/apps-x11/xterm-xpra.exp
index 379de131a..1fb5df486 100755
--- a/test/apps-x11/xterm-xpra.exp
+++ b/test/apps-x11/xterm-xpra.exp
@@ -79,6 +79,18 @@ expect {
79 "name=blablabla" 79 "name=blablabla"
80} 80}
81sleep 1 81sleep 1
82
83send -- "firemon --x11\r"
84expect {
85 timeout {puts "TESTING ERROR 7\n";exit}
86 "name=test xterm"
87}
88expect {
89 timeout {puts "TESTING ERROR 7.1\n";exit}
90 "DISPLAY"
91}
92sleep 1
93
82send -- "firejail --shutdown=test\r" 94send -- "firejail --shutdown=test\r"
83sleep 3 95sleep 3
84 96
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index 04a1daaf6..5c4d49331 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -55,12 +55,6 @@ else
55 echo "TESTING SKIP: zsh not found" 55 echo "TESTING SKIP: zsh not found"
56fi 56fi
57 57
58echo "TESTING: rlimit (test/environment/rlimit.exp)"
59./rlimit.exp
60
61echo "TESTING: rlimit profile (test/environment/rlimit-profile.exp)"
62./rlimit-profile.exp
63
64echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" 58echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)"
65./firejail-in-firejail.exp 59./firejail-in-firejail.exp
66 60
diff --git a/test/environment/rlimit-profile.exp b/test/rlimit/rlimit-profile.exp
index a9e54a405..a9e54a405 100755
--- a/test/environment/rlimit-profile.exp
+++ b/test/rlimit/rlimit-profile.exp
diff --git a/test/environment/rlimit.exp b/test/rlimit/rlimit.exp
index 611f69821..611f69821 100755
--- a/test/environment/rlimit.exp
+++ b/test/rlimit/rlimit.exp
diff --git a/test/environment/rlimit.profile b/test/rlimit/rlimit.profile
index 271891c03..271891c03 100644
--- a/test/environment/rlimit.profile
+++ b/test/rlimit/rlimit.profile
diff --git a/test/root/apache2.exp b/test/root/apache2.exp
index 7f67f4706..0b102bad5 100755
--- a/test/root/apache2.exp
+++ b/test/root/apache2.exp
@@ -4,10 +4,6 @@ set timeout 5
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "pkill apache\r"
8sleep 2
9
10
11send -- "firejail --name=apache /etc/init.d/apache2 start\r" 7send -- "firejail --name=apache /etc/init.d/apache2 start\r"
12expect { 8expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/root/isc-dhcp.exp b/test/root/isc-dhcp.exp
index 86500707a..5d9597e7c 100755
--- a/test/root/isc-dhcp.exp
+++ b/test/root/isc-dhcp.exp
@@ -4,15 +4,6 @@ set timeout 5
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "sudo ls; sudo whoami; sudo pwd\r"
8expect {
9 timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit}
10 "root"
11}
12
13send -- "pkill dhcpd\r"
14sleep 2
15
16send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" 7send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r"
17expect { 8expect {
18 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/root/nginx.exp b/test/root/nginx.exp
index 0b62fada9..82ebe0ee7 100755
--- a/test/root/nginx.exp
+++ b/test/root/nginx.exp
@@ -4,10 +4,6 @@ set timeout 5
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "pkill nginx\r"
8sleep 2
9
10
11send -- "firejail --name=nginx /etc/init.d/nginx start\r" 7send -- "firejail --name=nginx /etc/init.d/nginx start\r"
12expect { 8expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/root/root.sh b/test/root/root.sh
index 471b7d535..494bd4fe7 100755
--- a/test/root/root.sh
+++ b/test/root/root.sh
@@ -48,6 +48,12 @@ else
48fi 48fi
49 49
50#******************************** 50#********************************
51# filesystem
52#********************************
53echo "TESTING: fs private (test/root/private.exp)"
54./private.exp
55
56#********************************
51# seccomp 57# seccomp
52#******************************** 58#********************************
53echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)" 59echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)"
diff --git a/test/root/snmpd.exp b/test/root/snmpd.exp
index 90e34470f..610fdb13a 100755
--- a/test/root/snmpd.exp
+++ b/test/root/snmpd.exp
@@ -4,16 +4,6 @@ set timeout 5
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "sudo ls; sudo whoami; sudo pwd\r"
8expect {
9 timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit}
10 "root"
11}
12
13send -- "pkill snmpd\r"
14sleep 2
15
16
17send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" 7send -- "firejail --name=snmpd /etc/init.d/snmpd start\r"
18expect { 8expect {
19 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/root/unbound.exp b/test/root/unbound.exp
index 193e662ff..9c496306a 100755
--- a/test/root/unbound.exp
+++ b/test/root/unbound.exp
@@ -4,15 +4,6 @@ set timeout 5
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "sudo ls; sudo whoami; sudo pwd\r"
8expect {
9 timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit}
10 "root"
11}
12
13send -- "pkill unbound\r"
14sleep 2
15
16send -- "firejail --name=unbound unbound\r" 7send -- "firejail --name=unbound unbound\r"
17expect { 8expect {
18 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}