From 2f8688a17eb9f20d15b1ac53cb58c2759987ed71 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 13 Nov 2016 20:35:12 -0500 Subject: testing --- test/root/apache2.exp | 4 ---- test/root/isc-dhcp.exp | 9 --------- test/root/nginx.exp | 4 ---- test/root/root.sh | 6 ++++++ test/root/snmpd.exp | 10 ---------- test/root/unbound.exp | 9 --------- 6 files changed, 6 insertions(+), 36 deletions(-) (limited to 'test/root') 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 spawn $env(SHELL) match_max 100000 -send -- "pkill apache\r" -sleep 2 - - send -- "firejail --name=apache /etc/init.d/apache2 start\r" expect { 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 spawn $env(SHELL) match_max 100000 -send -- "sudo ls; sudo whoami; sudo pwd\r" -expect { - timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} - "root" -} - -send -- "pkill dhcpd\r" -sleep 2 - send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" expect { 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 spawn $env(SHELL) match_max 100000 -send -- "pkill nginx\r" -sleep 2 - - send -- "firejail --name=nginx /etc/init.d/nginx start\r" expect { 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 @@ -47,6 +47,12 @@ else echo "TESTING SKIP: nginx not found" fi +#******************************** +# filesystem +#******************************** +echo "TESTING: fs private (test/root/private.exp)" +./private.exp + #******************************** # seccomp #******************************** 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 spawn $env(SHELL) match_max 100000 -send -- "sudo ls; sudo whoami; sudo pwd\r" -expect { - timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} - "root" -} - -send -- "pkill snmpd\r" -sleep 2 - - send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" expect { 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 spawn $env(SHELL) match_max 100000 -send -- "sudo ls; sudo whoami; sudo pwd\r" -expect { - timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} - "root" -} - -send -- "pkill unbound\r" -sleep 2 - send -- "firejail --name=unbound unbound\r" expect { timeout {puts "TESTING ERROR 0\n";exit} -- cgit v1.2.3-54-g00ecf