From a137cfb715fab07a2e21cf2a0770d1afcd2e2119 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 12 Jun 2016 11:58:59 -0400 Subject: fixes --- test/dist-compile/compile.sh | 45 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/dist-compile/compile.sh b/test/dist-compile/compile.sh index 64c99133a..2d055c1bd 100755 --- a/test/dist-compile/compile.sh +++ b/test/dist-compile/compile.sh @@ -9,7 +9,8 @@ arr[6]="TEST 6: compile network disabled" arr[7]="TEST 7: compile X11 disabled" arr[8]="TEST 8: compile network restricted" arr[9]="TEST 9: compile file transfer disabled" - +arr[10]="TEST 10: compile disable whitelist" +arr[11]="TEST 11: compile disable global config" # remove previous reports and output file cleanup() { @@ -213,7 +214,7 @@ print_title "${arr[9]}" # seccomp cd firejail make distclean -./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure +./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure make -j4 2>&1 | tee ../output-make cd .. grep Warning output-configure output-make > ./report-test9 @@ -222,6 +223,44 @@ cp output-configure oc9 cp output-make om9 rm output-configure output-make +#***************************************************************** +# TEST 10 +#***************************************************************** +# - disable whitelist +# - check compilation +#***************************************************************** +print_title "${arr[10]}" +# seccomp +cd firejail +make distclean +./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure +make -j4 2>&1 | tee ../output-make +cd .. +grep Warning output-configure output-make > ./report-test10 +grep Error output-configure output-make >> ./report-test10 +cp output-configure oc10 +cp output-make om10 +rm output-configure output-make + +#***************************************************************** +# TEST 11 +#***************************************************************** +# - disable global config +# - check compilation +#***************************************************************** +print_title "${arr[11]}" +# seccomp +cd firejail +make distclean +./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure +make -j4 2>&1 | tee ../output-make +cd .. +grep Warning output-configure output-make > ./report-test11 +grep Error output-configure output-make >> ./report-test11 +cp output-configure oc11 +cp output-make om11 +rm output-configure output-make + #***************************************************************** # PRINT REPORTS @@ -246,3 +285,5 @@ echo ${arr[6]} echo ${arr[7]} echo ${arr[8]} echo ${arr[9]} +echo ${arr[10]} +echo ${arr[11]} -- cgit v1.2.3-54-g00ecf