summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-01-26 09:52:24 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-01-26 09:52:24 -0500
commit751601ef56c3c7b36700b5501e3010a1d8053aeb (patch)
treec06ac5064a490f8b874bed84e656e214971e49ad
parentdon't allow --chroot as user without seccomp support (diff)
downloadfirejail-751601ef56c3c7b36700b5501e3010a1d8053aeb.tar.gz
firejail-751601ef56c3c7b36700b5501e3010a1d8053aeb.tar.zst
firejail-751601ef56c3c7b36700b5501e3010a1d8053aeb.zip
testing
-rwxr-xr-xtest/servers3.exp9
-rwxr-xr-xtest/servers6.exp9
-rwxr-xr-xtest/test-root.sh9
-rwxr-xr-xtest/test.sh3
4 files changed, 22 insertions, 8 deletions
diff --git a/test/servers3.exp b/test/servers3.exp
index 20a20a88d..eccdaa1d9 100755
--- a/test/servers3.exp
+++ b/test/servers3.exp
@@ -45,7 +45,7 @@ expect {
45send -- "cat index.html\r" 45send -- "cat index.html\r"
46expect { 46expect {
47 timeout {puts "TESTING ERROR 4\n";exit} 47 timeout {puts "TESTING ERROR 4\n";exit}
48 "This is the default web page for this server" 48 "DOCTYPE html PUBLIC"
49} 49}
50 50
51sleep 1 51sleep 1
@@ -63,6 +63,13 @@ expect {
63 "ppp" {puts "TESTING ERROR 6\n";exit} 63 "ppp" {puts "TESTING ERROR 6\n";exit}
64 "log" 64 "log"
65} 65}
66sleep 1
67send -- "ls -al /tmp;pwd\r"
68expect {
69 timeout {puts "TESTING ERROR 10\n";exit}
70 "X11-unix" {puts "TESTING ERROR 11\n";exit}
71 "/root"
72}
66sleep 2 73sleep 2
67 74
68puts "\nall done\n" 75puts "\nall done\n"
diff --git a/test/servers6.exp b/test/servers6.exp
index 2179f6f98..9ef4ea514 100755
--- a/test/servers6.exp
+++ b/test/servers6.exp
@@ -45,7 +45,7 @@ expect {
45send -- "cat index.html\r" 45send -- "cat index.html\r"
46expect { 46expect {
47 timeout {puts "TESTING ERROR 4\n";exit} 47 timeout {puts "TESTING ERROR 4\n";exit}
48 "Welcome to nginx" 48 "DOCTYPE html PUBLIC"
49} 49}
50 50
51sleep 1 51sleep 1
@@ -63,6 +63,13 @@ expect {
63 "ppp" {puts "TESTING ERROR 6\n";exit} 63 "ppp" {puts "TESTING ERROR 6\n";exit}
64 "log" 64 "log"
65} 65}
66sleep 1
67send -- "ls -al /tmp;pwd\r"
68expect {
69 timeout {puts "TESTING ERROR 10\n";exit}
70 "X11-unix" {puts "TESTING ERROR 11\n";exit}
71 "/root"
72}
66sleep 2 73sleep 2
67 74
68puts "\nall done\n" 75puts "\nall done\n"
diff --git a/test/test-root.sh b/test/test-root.sh
index 66096f33a..ee3b7aeb2 100755
--- a/test/test-root.sh
+++ b/test/test-root.sh
@@ -5,6 +5,9 @@
5echo "TESTING: tmpfs" 5echo "TESTING: tmpfs"
6./option_tmpfs.exp 6./option_tmpfs.exp
7 7
8echo "TESTING: profile tmpfs"
9./profile_tmpfs.exp
10
8echo "TESTING: network interfaces" 11echo "TESTING: network interfaces"
9./net_interface.exp 12./net_interface.exp
10 13
@@ -19,7 +22,7 @@ fi
19 22
20if [ -f /etc/init.d/apache2 ] 23if [ -f /etc/init.d/apache2 ]
21then 24then
22 echo "TESTING: servers apache2, private-dev" 25 echo "TESTING: servers apache2, private-dev, private-tmp"
23 ./servers3.exp 26 ./servers3.exp
24fi 27fi
25 28
@@ -31,13 +34,13 @@ fi
31 34
32if [ -f /etc/init.d/unbound ] 35if [ -f /etc/init.d/unbound ]
33then 36then
34 echo "TESTING: servers unbound, private-dev" 37 echo "TESTING: servers unbound, private-dev, private-tmp"
35 ./servers5.exp 38 ./servers5.exp
36fi 39fi
37 40
38if [ -f /etc/init.d/nginx ] 41if [ -f /etc/init.d/nginx ]
39then 42then
40 echo "TESTING: servers nginx, private-dev" 43 echo "TESTING: servers nginx, private-dev, private-tmp"
41 ./servers6.exp 44 ./servers6.exp
42fi 45fi
43 46
diff --git a/test/test.sh b/test/test.sh
index 985b43af0..ad6599848 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -175,9 +175,6 @@ echo "TESTING: profile rlimit"
175echo "TESTING: profile read-only" 175echo "TESTING: profile read-only"
176./profile_readonly.exp 176./profile_readonly.exp
177 177
178echo "TESTING: profile tmpfs"
179./profile_tmpfs.exp
180
181echo "TESTING: private" 178echo "TESTING: private"
182./private.exp `whoami` 179./private.exp `whoami`
183 180