Skip to content

Commit

Permalink
rel 0.9.64.2 testing - make test-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 26, 2021
1 parent a04023a commit 848aac1
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion test/compile/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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() {
Expand Down Expand Up @@ -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
#*****************************************************************
Expand Down Expand Up @@ -363,3 +409,5 @@ echo ${arr[13]}
echo ${arr[14]}
echo ${arr[15]}
echo ${arr[16]}
echo ${arr[17]}
echo ${arr[18]}

0 comments on commit 848aac1

Please sign in to comment.