From 848aac1e6dbe288c3f7ef0a912d9f4008b5cb898 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 26 Jan 2021 09:13:39 -0500 Subject: rel 0.9.64.2 testing - make test-compile --- test/compile/compile.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/test/compile/compile.sh b/test/compile/compile.sh index 91fcfb85d..04819d95d 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh @@ -3,6 +3,16 @@ # Copyright (C) 2014-2020 Firejail Authors # License GPL v2 +# not currently covered +# --disable-suid install as a non-SUID executable +# --enable-fatal-warnings -W -Wall -Werror +# --enable-gcov Gcov instrumentation +# --enable-contrib-install +# install contrib scripts +# --enable-analyzer enable GCC 10 static analyzer + + + arr[1]="TEST 1: standard compilation" arr[2]="TEST 2: compile dbus proxy disabled" arr[3]="TEST 3: compile chroot disabled" @@ -18,7 +28,9 @@ arr[12]="TEST 12: compile apparmor" arr[13]="TEST 13: compile busybox" arr[14]="TEST 14: compile overlayfs disabled" arr[15]="TEST 15: compile private-home disabled" -arr[15]="TEST 16: compile disable manpages" +arr[16]="TEST 16: compile disable manpages" +arr[17]="TEST 17: disable tmpfs as regular user" +arr[18]="TEST 18: disable private home" # remove previous reports and output file cleanup() { @@ -333,6 +345,40 @@ cp output-configure oc16 cp output-make om16 rm output-configure output-make +#***************************************************************** +# TEST 17 +#***************************************************************** +# - disable tmpfs as regular user" +#***************************************************************** +print_title "${arr[17]}" +cd firejail +make distclean +./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure +make -j4 2>&1 | tee ../output-make +cd .. +grep Warning output-configure output-make > ./report-test17 +grep Error output-configure output-make >> ./report-test17 +cp output-configure oc17 +cp output-make om17 +rm output-configure output-make + +#***************************************************************** +# TEST 18 +#***************************************************************** +# - disable private home feature +#***************************************************************** +print_title "${arr[18]}" +cd firejail +make distclean +./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure +make -j4 2>&1 | tee ../output-make +cd .. +grep Warning output-configure output-make > ./report-test18 +grep Error output-configure output-make >> ./report-test18 +cp output-configure oc18 +cp output-make om18 +rm output-configure output-make + #***************************************************************** # PRINT REPORTS #***************************************************************** @@ -363,3 +409,5 @@ echo ${arr[13]} echo ${arr[14]} echo ${arr[15]} echo ${arr[16]} +echo ${arr[17]} +echo ${arr[18]} -- cgit v1.2.3-54-g00ecf