diff options
Diffstat (limited to 'test/compile')
-rwxr-xr-x | test/compile/compile.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh index 76a7162b7..44e67fe22 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh | |||
@@ -14,6 +14,7 @@ arr[11]="TEST 11: compile disable global config" | |||
14 | arr[12]="TEST 12: compile apparmor" | 14 | arr[12]="TEST 12: compile apparmor" |
15 | arr[13]="TEST 13: compile busybox" | 15 | arr[13]="TEST 13: compile busybox" |
16 | arr[14]="TEST 14: compile overlayfs disabled" | 16 | arr[14]="TEST 14: compile overlayfs disabled" |
17 | arr[15]="TEST 15: compile apparmor enabled" | ||
17 | 18 | ||
18 | # remove previous reports and output file | 19 | # remove previous reports and output file |
19 | cleanup() { | 20 | cleanup() { |
@@ -307,6 +308,24 @@ cp output-configure oc14 | |||
307 | cp output-make om14 | 308 | cp output-make om14 |
308 | rm output-configure output-make | 309 | rm output-configure output-make |
309 | 310 | ||
311 | #***************************************************************** | ||
312 | # TEST 15 | ||
313 | #***************************************************************** | ||
314 | # - enable apparmor | ||
315 | #***************************************************************** | ||
316 | print_title "${arr[15]}" | ||
317 | # seccomp | ||
318 | cd firejail | ||
319 | make distclean | ||
320 | ./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
321 | make -j4 2>&1 | tee ../output-make | ||
322 | cd .. | ||
323 | grep Warning output-configure output-make > ./report-test15 | ||
324 | grep Error output-configure output-make >> ./report-test15 | ||
325 | cp output-configure oc15 | ||
326 | cp output-make om15 | ||
327 | rm output-configure output-make | ||
328 | |||
310 | 329 | ||
311 | #***************************************************************** | 330 | #***************************************************************** |
312 | # PRINT REPORTS | 331 | # PRINT REPORTS |
@@ -336,3 +355,5 @@ echo ${arr[11]} | |||
336 | echo ${arr[12]} | 355 | echo ${arr[12]} |
337 | echo ${arr[13]} | 356 | echo ${arr[13]} |
338 | echo ${arr[14]} | 357 | echo ${arr[14]} |
358 | echo ${arr[15]} | ||
359 | |||