aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-01-26 09:13:39 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2021-01-26 09:13:39 -0500
commit848aac1e6dbe288c3f7ef0a912d9f4008b5cb898 (patch)
treefacddaff802009e092a931e646a230c674420841
parentrel 0.9.24.2 testing (diff)
downloadfirejail-848aac1e6dbe288c3f7ef0a912d9f4008b5cb898.tar.gz
firejail-848aac1e6dbe288c3f7ef0a912d9f4008b5cb898.tar.zst
firejail-848aac1e6dbe288c3f7ef0a912d9f4008b5cb898.zip
rel 0.9.64.2 testing - make test-compile
-rwxr-xr-xtest/compile/compile.sh50
1 files changed, 49 insertions, 1 deletions
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 @@
3# Copyright (C) 2014-2020 Firejail Authors 3# Copyright (C) 2014-2020 Firejail Authors
4# License GPL v2 4# License GPL v2
5 5
6# not currently covered
7# --disable-suid install as a non-SUID executable
8# --enable-fatal-warnings -W -Wall -Werror
9# --enable-gcov Gcov instrumentation
10# --enable-contrib-install
11# install contrib scripts
12# --enable-analyzer enable GCC 10 static analyzer
13
14
15
6arr[1]="TEST 1: standard compilation" 16arr[1]="TEST 1: standard compilation"
7arr[2]="TEST 2: compile dbus proxy disabled" 17arr[2]="TEST 2: compile dbus proxy disabled"
8arr[3]="TEST 3: compile chroot disabled" 18arr[3]="TEST 3: compile chroot disabled"
@@ -18,7 +28,9 @@ arr[12]="TEST 12: compile apparmor"
18arr[13]="TEST 13: compile busybox" 28arr[13]="TEST 13: compile busybox"
19arr[14]="TEST 14: compile overlayfs disabled" 29arr[14]="TEST 14: compile overlayfs disabled"
20arr[15]="TEST 15: compile private-home disabled" 30arr[15]="TEST 15: compile private-home disabled"
21arr[15]="TEST 16: compile disable manpages" 31arr[16]="TEST 16: compile disable manpages"
32arr[17]="TEST 17: disable tmpfs as regular user"
33arr[18]="TEST 18: disable private home"
22 34
23# remove previous reports and output file 35# remove previous reports and output file
24cleanup() { 36cleanup() {
@@ -334,6 +346,40 @@ cp output-make om16
334rm output-configure output-make 346rm output-configure output-make
335 347
336#***************************************************************** 348#*****************************************************************
349# TEST 17
350#*****************************************************************
351# - disable tmpfs as regular user"
352#*****************************************************************
353print_title "${arr[17]}"
354cd firejail
355make distclean
356./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure
357make -j4 2>&1 | tee ../output-make
358cd ..
359grep Warning output-configure output-make > ./report-test17
360grep Error output-configure output-make >> ./report-test17
361cp output-configure oc17
362cp output-make om17
363rm output-configure output-make
364
365#*****************************************************************
366# TEST 18
367#*****************************************************************
368# - disable private home feature
369#*****************************************************************
370print_title "${arr[18]}"
371cd firejail
372make distclean
373./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
374make -j4 2>&1 | tee ../output-make
375cd ..
376grep Warning output-configure output-make > ./report-test18
377grep Error output-configure output-make >> ./report-test18
378cp output-configure oc18
379cp output-make om18
380rm output-configure output-make
381
382#*****************************************************************
337# PRINT REPORTS 383# PRINT REPORTS
338#***************************************************************** 384#*****************************************************************
339echo 385echo
@@ -363,3 +409,5 @@ echo ${arr[13]}
363echo ${arr[14]} 409echo ${arr[14]}
364echo ${arr[15]} 410echo ${arr[15]}
365echo ${arr[16]} 411echo ${arr[16]}
412echo ${arr[17]}
413echo ${arr[18]}