diff options
Diffstat (limited to 'test/dist-compile/compile.sh')
-rwxr-xr-x | test/dist-compile/compile.sh | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/test/dist-compile/compile.sh b/test/dist-compile/compile.sh index f762b457d..76a7162b7 100755 --- a/test/dist-compile/compile.sh +++ b/test/dist-compile/compile.sh | |||
@@ -12,7 +12,8 @@ arr[9]="TEST 9: compile file transfer disabled" | |||
12 | arr[10]="TEST 10: compile disable whitelist" | 12 | arr[10]="TEST 10: compile disable whitelist" |
13 | arr[11]="TEST 11: compile disable global config" | 13 | arr[11]="TEST 11: compile disable global config" |
14 | arr[12]="TEST 12: compile apparmor" | 14 | arr[12]="TEST 12: compile apparmor" |
15 | arr[12]="TEST 13: compile busybox" | 15 | arr[13]="TEST 13: compile busybox" |
16 | arr[14]="TEST 14: compile overlayfs disabled" | ||
16 | 17 | ||
17 | # remove previous reports and output file | 18 | # remove previous reports and output file |
18 | cleanup() { | 19 | cleanup() { |
@@ -52,8 +53,6 @@ cleanup | |||
52 | # TEST 1 | 53 | # TEST 1 |
53 | #***************************************************************** | 54 | #***************************************************************** |
54 | # - checkout source code | 55 | # - checkout source code |
55 | # - check compilation | ||
56 | # - install | ||
57 | #***************************************************************** | 56 | #***************************************************************** |
58 | print_title "${arr[1]}" | 57 | print_title "${arr[1]}" |
59 | echo "$DIST" | 58 | echo "$DIST" |
@@ -75,7 +74,6 @@ rm output-configure output-make | |||
75 | # TEST 2 | 74 | # TEST 2 |
76 | #***************************************************************** | 75 | #***************************************************************** |
77 | # - disable seccomp configuration | 76 | # - disable seccomp configuration |
78 | # - check compilation | ||
79 | #***************************************************************** | 77 | #***************************************************************** |
80 | print_title "${arr[2]}" | 78 | print_title "${arr[2]}" |
81 | # seccomp | 79 | # seccomp |
@@ -94,7 +92,6 @@ rm output-configure output-make | |||
94 | # TEST 3 | 92 | # TEST 3 |
95 | #***************************************************************** | 93 | #***************************************************************** |
96 | # - disable chroot configuration | 94 | # - disable chroot configuration |
97 | # - check compilation | ||
98 | #***************************************************************** | 95 | #***************************************************************** |
99 | print_title "${arr[3]}" | 96 | print_title "${arr[3]}" |
100 | # seccomp | 97 | # seccomp |
@@ -113,7 +110,6 @@ rm output-configure output-make | |||
113 | # TEST 4 | 110 | # TEST 4 |
114 | #***************************************************************** | 111 | #***************************************************************** |
115 | # - disable bind configuration | 112 | # - disable bind configuration |
116 | # - check compilation | ||
117 | #***************************************************************** | 113 | #***************************************************************** |
118 | print_title "${arr[4]}" | 114 | print_title "${arr[4]}" |
119 | # seccomp | 115 | # seccomp |
@@ -132,7 +128,6 @@ rm output-configure output-make | |||
132 | # TEST 5 | 128 | # TEST 5 |
133 | #***************************************************************** | 129 | #***************************************************************** |
134 | # - disable user namespace configuration | 130 | # - disable user namespace configuration |
135 | # - check compilation | ||
136 | #***************************************************************** | 131 | #***************************************************************** |
137 | print_title "${arr[5]}" | 132 | print_title "${arr[5]}" |
138 | # seccomp | 133 | # seccomp |
@@ -170,7 +165,6 @@ rm output-configure output-make | |||
170 | # TEST 7 | 165 | # TEST 7 |
171 | #***************************************************************** | 166 | #***************************************************************** |
172 | # - disable X11 support | 167 | # - disable X11 support |
173 | # - check compilation | ||
174 | #***************************************************************** | 168 | #***************************************************************** |
175 | print_title "${arr[7]}" | 169 | print_title "${arr[7]}" |
176 | # seccomp | 170 | # seccomp |
@@ -190,7 +184,6 @@ rm output-configure output-make | |||
190 | # TEST 8 | 184 | # TEST 8 |
191 | #***************************************************************** | 185 | #***************************************************************** |
192 | # - enable network restricted | 186 | # - enable network restricted |
193 | # - check compilation | ||
194 | #***************************************************************** | 187 | #***************************************************************** |
195 | print_title "${arr[8]}" | 188 | print_title "${arr[8]}" |
196 | # seccomp | 189 | # seccomp |
@@ -210,7 +203,6 @@ rm output-configure output-make | |||
210 | # TEST 9 | 203 | # TEST 9 |
211 | #***************************************************************** | 204 | #***************************************************************** |
212 | # - disable file transfer | 205 | # - disable file transfer |
213 | # - check compilation | ||
214 | #***************************************************************** | 206 | #***************************************************************** |
215 | print_title "${arr[9]}" | 207 | print_title "${arr[9]}" |
216 | # seccomp | 208 | # seccomp |
@@ -229,7 +221,6 @@ rm output-configure output-make | |||
229 | # TEST 10 | 221 | # TEST 10 |
230 | #***************************************************************** | 222 | #***************************************************************** |
231 | # - disable whitelist | 223 | # - disable whitelist |
232 | # - check compilation | ||
233 | #***************************************************************** | 224 | #***************************************************************** |
234 | print_title "${arr[10]}" | 225 | print_title "${arr[10]}" |
235 | # seccomp | 226 | # seccomp |
@@ -248,7 +239,6 @@ rm output-configure output-make | |||
248 | # TEST 11 | 239 | # TEST 11 |
249 | #***************************************************************** | 240 | #***************************************************************** |
250 | # - disable global config | 241 | # - disable global config |
251 | # - check compilation | ||
252 | #***************************************************************** | 242 | #***************************************************************** |
253 | print_title "${arr[11]}" | 243 | print_title "${arr[11]}" |
254 | # seccomp | 244 | # seccomp |
@@ -267,9 +257,8 @@ rm output-configure output-make | |||
267 | # TEST 12 | 257 | # TEST 12 |
268 | #***************************************************************** | 258 | #***************************************************************** |
269 | # - enable apparmor | 259 | # - enable apparmor |
270 | # - check compilation | ||
271 | #***************************************************************** | 260 | #***************************************************************** |
272 | print_title "${arr[11]}" | 261 | print_title "${arr[12]}" |
273 | # seccomp | 262 | # seccomp |
274 | cd firejail | 263 | cd firejail |
275 | make distclean | 264 | make distclean |
@@ -286,9 +275,8 @@ rm output-configure output-make | |||
286 | # TEST 13 | 275 | # TEST 13 |
287 | #***************************************************************** | 276 | #***************************************************************** |
288 | # - enable busybox workaround | 277 | # - enable busybox workaround |
289 | # - check compilation | ||
290 | #***************************************************************** | 278 | #***************************************************************** |
291 | print_title "${arr[11]}" | 279 | print_title "${arr[13]}" |
292 | # seccomp | 280 | # seccomp |
293 | cd firejail | 281 | cd firejail |
294 | make distclean | 282 | make distclean |
@@ -301,6 +289,24 @@ cp output-configure oc13 | |||
301 | cp output-make om13 | 289 | cp output-make om13 |
302 | rm output-configure output-make | 290 | rm output-configure output-make |
303 | 291 | ||
292 | #***************************************************************** | ||
293 | # TEST 14 | ||
294 | #***************************************************************** | ||
295 | # - disable overlayfs | ||
296 | #***************************************************************** | ||
297 | print_title "${arr[14]}" | ||
298 | # seccomp | ||
299 | cd firejail | ||
300 | make distclean | ||
301 | ./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
302 | make -j4 2>&1 | tee ../output-make | ||
303 | cd .. | ||
304 | grep Warning output-configure output-make > ./report-test14 | ||
305 | grep Error output-configure output-make >> ./report-test14 | ||
306 | cp output-configure oc14 | ||
307 | cp output-make om14 | ||
308 | rm output-configure output-make | ||
309 | |||
304 | 310 | ||
305 | #***************************************************************** | 311 | #***************************************************************** |
306 | # PRINT REPORTS | 312 | # PRINT REPORTS |
@@ -329,3 +335,4 @@ echo ${arr[10]} | |||
329 | echo ${arr[11]} | 335 | echo ${arr[11]} |
330 | echo ${arr[12]} | 336 | echo ${arr[12]} |
331 | echo ${arr[13]} | 337 | echo ${arr[13]} |
338 | echo ${arr[14]} | ||