aboutsummaryrefslogtreecommitdiffstats
path: root/test/root
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-04-04 14:47:01 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-04-04 14:47:01 -0400
commita59430b9bff5fc4e10e2ede419c20568a15f9958 (patch)
tree0454563449673e319bb964b5e50004242fa07848 /test/root
parentMerge branch 'master' of http://github.com/netblue30/firejail (diff)
downloadfirejail-a59430b9bff5fc4e10e2ede419c20568a15f9958.tar.gz
firejail-a59430b9bff5fc4e10e2ede419c20568a15f9958.tar.zst
firejail-a59430b9bff5fc4e10e2ede419c20568a15f9958.zip
testing
Diffstat (limited to 'test/root')
-rwxr-xr-xtest/root/apache2.exp6
-rwxr-xr-xtest/root/nginx.exp6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/root/apache2.exp b/test/root/apache2.exp
index 0b102bad5..88678d666 100755
--- a/test/root/apache2.exp
+++ b/test/root/apache2.exp
@@ -16,18 +16,18 @@ spawn $env(SHELL)
16send -- "firejail --tree\r" 16send -- "firejail --tree\r"
17expect { 17expect {
18 timeout {puts "TESTING ERROR 1\n";exit} 18 timeout {puts "TESTING ERROR 1\n";exit}
19 "root:/usr/sbin/apache2" 19 "root:apache:firejail --name=apache /etc/init.d/apache2"
20} 20}
21expect { 21expect {
22 timeout {puts "TESTING ERROR 2\n";exit} 22 timeout {puts "TESTING ERROR 2\n";exit}
23 "www-data:/usr/sbin/apache2" 23 "www-data::/usr/sbin/apache2"
24} 24}
25sleep 2 25sleep 2
26 26
27 27
28send -- "rm index.html\r" 28send -- "rm index.html\r"
29sleep 1 29sleep 1
30send -- "wget 0\r" 30send -- "wget 127.0.0.1\r"
31expect { 31expect {
32 timeout {puts "TESTING ERROR 3\n";exit} 32 timeout {puts "TESTING ERROR 3\n";exit}
33 "saved" 33 "saved"
diff --git a/test/root/nginx.exp b/test/root/nginx.exp
index 82ebe0ee7..b98b50af6 100755
--- a/test/root/nginx.exp
+++ b/test/root/nginx.exp
@@ -16,18 +16,18 @@ spawn $env(SHELL)
16send -- "firejail --tree\r" 16send -- "firejail --tree\r"
17expect { 17expect {
18 timeout {puts "TESTING ERROR 1\n";exit} 18 timeout {puts "TESTING ERROR 1\n";exit}
19 "root:nginx" 19 "root::nginx: master process /usr/sbin/nginx"
20} 20}
21expect { 21expect {
22 timeout {puts "TESTING ERROR 2\n";exit} 22 timeout {puts "TESTING ERROR 2\n";exit}
23 "www-data:nginx" 23 "www-data::nginx: worker process"
24} 24}
25sleep 2 25sleep 2
26 26
27 27
28send -- "rm index.html\r" 28send -- "rm index.html\r"
29sleep 1 29sleep 1
30send -- "wget 0\r" 30send -- "wget 127.0.0.1\r"
31expect { 31expect {
32 timeout {puts "TESTING ERROR 3\n";exit} 32 timeout {puts "TESTING ERROR 3\n";exit}
33 "saved" 33 "saved"