diff options
author | 2018-04-04 14:47:01 -0400 | |
---|---|---|
committer | 2018-04-04 14:47:01 -0400 | |
commit | a59430b9bff5fc4e10e2ede419c20568a15f9958 (patch) | |
tree | 0454563449673e319bb964b5e50004242fa07848 | |
parent | Merge branch 'master' of http://github.com/netblue30/firejail (diff) | |
download | firejail-a59430b9bff5fc4e10e2ede419c20568a15f9958.tar.gz firejail-a59430b9bff5fc4e10e2ede419c20568a15f9958.tar.zst firejail-a59430b9bff5fc4e10e2ede419c20568a15f9958.zip |
testing
-rwxr-xr-x | test/root/apache2.exp | 6 | ||||
-rwxr-xr-x | test/root/nginx.exp | 6 |
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) | |||
16 | send -- "firejail --tree\r" | 16 | send -- "firejail --tree\r" |
17 | expect { | 17 | expect { |
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 | } |
21 | expect { | 21 | expect { |
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 | } |
25 | sleep 2 | 25 | sleep 2 |
26 | 26 | ||
27 | 27 | ||
28 | send -- "rm index.html\r" | 28 | send -- "rm index.html\r" |
29 | sleep 1 | 29 | sleep 1 |
30 | send -- "wget 0\r" | 30 | send -- "wget 127.0.0.1\r" |
31 | expect { | 31 | expect { |
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) | |||
16 | send -- "firejail --tree\r" | 16 | send -- "firejail --tree\r" |
17 | expect { | 17 | expect { |
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 | } |
21 | expect { | 21 | expect { |
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 | } |
25 | sleep 2 | 25 | sleep 2 |
26 | 26 | ||
27 | 27 | ||
28 | send -- "rm index.html\r" | 28 | send -- "rm index.html\r" |
29 | sleep 1 | 29 | sleep 1 |
30 | send -- "wget 0\r" | 30 | send -- "wget 127.0.0.1\r" |
31 | expect { | 31 | expect { |
32 | timeout {puts "TESTING ERROR 3\n";exit} | 32 | timeout {puts "TESTING ERROR 3\n";exit} |
33 | "saved" | 33 | "saved" |