diff options
Diffstat (limited to 'test/dist-compile/compile.sh')
-rwxr-xr-x | test/dist-compile/compile.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/dist-compile/compile.sh b/test/dist-compile/compile.sh index b33f0660a..f762b457d 100755 --- a/test/dist-compile/compile.sh +++ b/test/dist-compile/compile.sh | |||
@@ -12,6 +12,7 @@ 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 | 16 | ||
16 | # remove previous reports and output file | 17 | # remove previous reports and output file |
17 | cleanup() { | 18 | cleanup() { |
@@ -281,6 +282,25 @@ cp output-configure oc12 | |||
281 | cp output-make om12 | 282 | cp output-make om12 |
282 | rm output-configure output-make | 283 | rm output-configure output-make |
283 | 284 | ||
285 | #***************************************************************** | ||
286 | # TEST 13 | ||
287 | #***************************************************************** | ||
288 | # - enable busybox workaround | ||
289 | # - check compilation | ||
290 | #***************************************************************** | ||
291 | print_title "${arr[11]}" | ||
292 | # seccomp | ||
293 | cd firejail | ||
294 | make distclean | ||
295 | ./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
296 | make -j4 2>&1 | tee ../output-make | ||
297 | cd .. | ||
298 | grep Warning output-configure output-make > ./report-test13 | ||
299 | grep Error output-configure output-make >> ./report-test13 | ||
300 | cp output-configure oc13 | ||
301 | cp output-make om13 | ||
302 | rm output-configure output-make | ||
303 | |||
284 | 304 | ||
285 | #***************************************************************** | 305 | #***************************************************************** |
286 | # PRINT REPORTS | 306 | # PRINT REPORTS |
@@ -308,3 +328,4 @@ echo ${arr[9]} | |||
308 | echo ${arr[10]} | 328 | echo ${arr[10]} |
309 | echo ${arr[11]} | 329 | echo ${arr[11]} |
310 | echo ${arr[12]} | 330 | echo ${arr[12]} |
331 | echo ${arr[13]} | ||