aboutsummaryrefslogtreecommitdiffstats
path: root/test/root
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-13 20:35:12 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-13 20:35:12 -0500
commit2f8688a17eb9f20d15b1ac53cb58c2759987ed71 (patch)
treefee7cf10a8f7c45f0d34ce3535801b2ee256dee8 /test/root
parentmajor cleanup and testing (diff)
downloadfirejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.tar.gz
firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.tar.zst
firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.zip
testing
Diffstat (limited to 'test/root')
-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
6 files changed, 6 insertions, 36 deletions
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}