aboutsummaryrefslogtreecommitdiffstats
path: root/test/features
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-03-23 09:29:27 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-03-23 09:29:27 -0400
commit3eb4b71a6d62c30899e9d58379c2a5c5fa171b10 (patch)
treefffda8de35f7cc7b68cbae76b4365f796100f2ac /test/features
parenthide firejail run time information (diff)
downloadfirejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.tar.gz
firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.tar.zst
firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.zip
testing
Diffstat (limited to 'test/features')
-rwxr-xr-xtest/features/1.8.exp90
-rw-r--r--test/features/features.txt2
-rwxr-xr-xtest/features/test.sh2
3 files changed, 92 insertions, 2 deletions
diff --git a/test/features/1.8.exp b/test/features/1.8.exp
index d937f4f12..dd525df49 100755
--- a/test/features/1.8.exp
+++ b/test/features/1.8.exp
@@ -32,6 +32,36 @@ expect {
32 "Permission denied" 32 "Permission denied"
33} 33}
34after 100 34after 100
35send -- "ls /run/firejail/bandwidth\r"
36expect {
37 timeout {puts "TESTING ERROR 1.2\n";exit}
38 "Permission denied"
39}
40after 100
41#send -- "ls /run/firejail/mnt\r"
42#expect {
43# timeout {puts "TESTING ERROR 1.3\n";exit}
44# "Permission denied"
45#}
46#after 100
47send -- "ls /run/firejail/name\r"
48expect {
49 timeout {puts "TESTING ERROR 1.4\n";exit}
50 "Permission denied"
51}
52after 100
53send -- "ls /run/firejail/network\r"
54expect {
55 timeout {puts "TESTING ERROR 1.5\n";exit}
56 "Permission denied"
57}
58after 100
59send -- "ls /run/firejail/x11\r"
60expect {
61 timeout {puts "TESTING ERROR 1.6\n";exit}
62 "Permission denied"
63}
64after 100
35send -- "exit\r" 65send -- "exit\r"
36sleep 1 66sleep 1
37 67
@@ -58,6 +88,36 @@ if { $overlay == "overlay" } {
58 "Permission denied" 88 "Permission denied"
59 } 89 }
60 after 100 90 after 100
91 send -- "ls /run/firejail/bandwidth\r"
92 expect {
93 timeout {puts "TESTING ERROR 3.2\n";exit}
94 "Permission denied"
95 }
96 after 100
97 #send -- "ls /run/firejail/mnt\r"
98 #expect {
99 # timeout {puts "TESTING ERROR 3.3\n";exit}
100 # "Permission denied"
101 #}
102 #after 100
103 send -- "ls /run/firejail/name\r"
104 expect {
105 timeout {puts "TESTING ERROR 3.4\n";exit}
106 "Permission denied"
107 }
108 after 100
109 send -- "ls /run/firejail/network\r"
110 expect {
111 timeout {puts "TESTING ERROR 3.5\n";exit}
112 "Permission denied"
113 }
114 after 100
115 send -- "ls /run/firejail/x11\r"
116 expect {
117 timeout {puts "TESTING ERROR 3.6\n";exit}
118 "Permission denied"
119 }
120 after 100
61 121
62 send -- "exit\r" 122 send -- "exit\r"
63 sleep 1 123 sleep 1
@@ -85,6 +145,36 @@ if { $chroot == "chroot" } {
85 "Permission denied" 145 "Permission denied"
86 } 146 }
87 after 100 147 after 100
148 send -- "ls /run/firejail/bandwidth\r"
149 expect {
150 timeout {puts "TESTING ERROR 5.2\n";exit}
151 "Permission denied"
152 }
153 after 100
154 #send -- "ls /run/firejail/mnt\r"
155 #expect {
156 # timeout {puts "TESTING ERROR 5.3\n";exit}
157 # "Permission denied"
158 #}
159 #after 100
160 send -- "ls /run/firejail/name\r"
161 expect {
162 timeout {puts "TESTING ERROR 5.4\n";exit}
163 "Permission denied"
164 }
165 after 100
166 send -- "ls /run/firejail/network\r"
167 expect {
168 timeout {puts "TESTING ERROR 5.5\n";exit}
169 "Permission denied"
170 }
171 after 100
172 send -- "ls /run/firejail/x11\r"
173 expect {
174 timeout {puts "TESTING ERROR 5.6\n";exit}
175 "Permission denied"
176 }
177 after 100
88 send -- "exit\r" 178 send -- "exit\r"
89 sleep 1 179 sleep 1
90} 180}
diff --git a/test/features/features.txt b/test/features/features.txt
index 283e85d93..b793257c3 100644
--- a/test/features/features.txt
+++ b/test/features/features.txt
@@ -21,7 +21,7 @@ C - chroot filesystem
211.5 PID namespace 211.5 PID namespace
221.6 new /var/log 221.6 new /var/log
231.7 new /var/tmp 231.7 new /var/tmp
241.8 disable /etc/firejail and ~/.config/firejail 241.8 disable firejail config and run time information
251.9 mount namespace 251.9 mount namespace
261.10 disable /selinux 261.10 disable /selinux
27 27
diff --git a/test/features/test.sh b/test/features/test.sh
index 3570dae5a..f28da37d5 100755
--- a/test/features/test.sh
+++ b/test/features/test.sh
@@ -50,7 +50,7 @@ echo "TESTING: 1.6 new /var/log"
50echo "TESTING: 1.7 new /var/tmp" 50echo "TESTING: 1.7 new /var/tmp"
51./1.7.exp $OVERLAY $CHROOT 51./1.7.exp $OVERLAY $CHROOT
52 52
53echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" 53echo "TESTING: 1.8 disable firejail config and run time information"
54./1.8.exp $OVERLAY $CHROOT 54./1.8.exp $OVERLAY $CHROOT
55 55
56echo "TESTING: 1.10 disable /selinux" 56echo "TESTING: 1.10 disable /selinux"