aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-08-20 07:54:20 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-08-20 07:54:20 -0400
commitccf7230e0b4e74d21ba9030793b4486250d30507 (patch)
treef260e93febf31c5183dbd1b8e991dbad5e4f7016 /test
parentsmall fixes for command args (diff)
downloadfirejail-ccf7230e0b4e74d21ba9030793b4486250d30507.tar.gz
firejail-ccf7230e0b4e74d21ba9030793b4486250d30507.tar.zst
firejail-ccf7230e0b4e74d21ba9030793b4486250d30507.zip
compile time config option for overlayfs
Diffstat (limited to 'test')
-rwxr-xr-xtest/dist-compile/compile.sh39
1 files changed, 23 insertions, 16 deletions
diff --git a/test/dist-compile/compile.sh b/test/dist-compile/compile.sh
index f762b457d..76a7162b7 100755
--- a/test/dist-compile/compile.sh
+++ b/test/dist-compile/compile.sh
@@ -12,7 +12,8 @@ arr[9]="TEST 9: compile file transfer disabled"
12arr[10]="TEST 10: compile disable whitelist" 12arr[10]="TEST 10: compile disable whitelist"
13arr[11]="TEST 11: compile disable global config" 13arr[11]="TEST 11: compile disable global config"
14arr[12]="TEST 12: compile apparmor" 14arr[12]="TEST 12: compile apparmor"
15arr[12]="TEST 13: compile busybox" 15arr[13]="TEST 13: compile busybox"
16arr[14]="TEST 14: compile overlayfs disabled"
16 17
17# remove previous reports and output file 18# remove previous reports and output file
18cleanup() { 19cleanup() {
@@ -52,8 +53,6 @@ cleanup
52# TEST 1 53# TEST 1
53#***************************************************************** 54#*****************************************************************
54# - checkout source code 55# - checkout source code
55# - check compilation
56# - install
57#***************************************************************** 56#*****************************************************************
58print_title "${arr[1]}" 57print_title "${arr[1]}"
59echo "$DIST" 58echo "$DIST"
@@ -75,7 +74,6 @@ rm output-configure output-make
75# TEST 2 74# TEST 2
76#***************************************************************** 75#*****************************************************************
77# - disable seccomp configuration 76# - disable seccomp configuration
78# - check compilation
79#***************************************************************** 77#*****************************************************************
80print_title "${arr[2]}" 78print_title "${arr[2]}"
81# seccomp 79# seccomp
@@ -94,7 +92,6 @@ rm output-configure output-make
94# TEST 3 92# TEST 3
95#***************************************************************** 93#*****************************************************************
96# - disable chroot configuration 94# - disable chroot configuration
97# - check compilation
98#***************************************************************** 95#*****************************************************************
99print_title "${arr[3]}" 96print_title "${arr[3]}"
100# seccomp 97# seccomp
@@ -113,7 +110,6 @@ rm output-configure output-make
113# TEST 4 110# TEST 4
114#***************************************************************** 111#*****************************************************************
115# - disable bind configuration 112# - disable bind configuration
116# - check compilation
117#***************************************************************** 113#*****************************************************************
118print_title "${arr[4]}" 114print_title "${arr[4]}"
119# seccomp 115# seccomp
@@ -132,7 +128,6 @@ rm output-configure output-make
132# TEST 5 128# TEST 5
133#***************************************************************** 129#*****************************************************************
134# - disable user namespace configuration 130# - disable user namespace configuration
135# - check compilation
136#***************************************************************** 131#*****************************************************************
137print_title "${arr[5]}" 132print_title "${arr[5]}"
138# seccomp 133# seccomp
@@ -170,7 +165,6 @@ rm output-configure output-make
170# TEST 7 165# TEST 7
171#***************************************************************** 166#*****************************************************************
172# - disable X11 support 167# - disable X11 support
173# - check compilation
174#***************************************************************** 168#*****************************************************************
175print_title "${arr[7]}" 169print_title "${arr[7]}"
176# seccomp 170# seccomp
@@ -190,7 +184,6 @@ rm output-configure output-make
190# TEST 8 184# TEST 8
191#***************************************************************** 185#*****************************************************************
192# - enable network restricted 186# - enable network restricted
193# - check compilation
194#***************************************************************** 187#*****************************************************************
195print_title "${arr[8]}" 188print_title "${arr[8]}"
196# seccomp 189# seccomp
@@ -210,7 +203,6 @@ rm output-configure output-make
210# TEST 9 203# TEST 9
211#***************************************************************** 204#*****************************************************************
212# - disable file transfer 205# - disable file transfer
213# - check compilation
214#***************************************************************** 206#*****************************************************************
215print_title "${arr[9]}" 207print_title "${arr[9]}"
216# seccomp 208# seccomp
@@ -229,7 +221,6 @@ rm output-configure output-make
229# TEST 10 221# TEST 10
230#***************************************************************** 222#*****************************************************************
231# - disable whitelist 223# - disable whitelist
232# - check compilation
233#***************************************************************** 224#*****************************************************************
234print_title "${arr[10]}" 225print_title "${arr[10]}"
235# seccomp 226# seccomp
@@ -248,7 +239,6 @@ rm output-configure output-make
248# TEST 11 239# TEST 11
249#***************************************************************** 240#*****************************************************************
250# - disable global config 241# - disable global config
251# - check compilation
252#***************************************************************** 242#*****************************************************************
253print_title "${arr[11]}" 243print_title "${arr[11]}"
254# seccomp 244# seccomp
@@ -267,9 +257,8 @@ rm output-configure output-make
267# TEST 12 257# TEST 12
268#***************************************************************** 258#*****************************************************************
269# - enable apparmor 259# - enable apparmor
270# - check compilation
271#***************************************************************** 260#*****************************************************************
272print_title "${arr[11]}" 261print_title "${arr[12]}"
273# seccomp 262# seccomp
274cd firejail 263cd firejail
275make distclean 264make distclean
@@ -286,9 +275,8 @@ rm output-configure output-make
286# TEST 13 275# TEST 13
287#***************************************************************** 276#*****************************************************************
288# - enable busybox workaround 277# - enable busybox workaround
289# - check compilation
290#***************************************************************** 278#*****************************************************************
291print_title "${arr[11]}" 279print_title "${arr[13]}"
292# seccomp 280# seccomp
293cd firejail 281cd firejail
294make distclean 282make distclean
@@ -301,6 +289,24 @@ cp output-configure oc13
301cp output-make om13 289cp output-make om13
302rm output-configure output-make 290rm output-configure output-make
303 291
292#*****************************************************************
293# TEST 14
294#*****************************************************************
295# - disable overlayfs
296#*****************************************************************
297print_title "${arr[14]}"
298# seccomp
299cd firejail
300make distclean
301./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure
302make -j4 2>&1 | tee ../output-make
303cd ..
304grep Warning output-configure output-make > ./report-test14
305grep Error output-configure output-make >> ./report-test14
306cp output-configure oc14
307cp output-make om14
308rm output-configure output-make
309
304 310
305#***************************************************************** 311#*****************************************************************
306# PRINT REPORTS 312# PRINT REPORTS
@@ -329,3 +335,4 @@ echo ${arr[10]}
329echo ${arr[11]} 335echo ${arr[11]}
330echo ${arr[12]} 336echo ${arr[12]}
331echo ${arr[13]} 337echo ${arr[13]}
338echo ${arr[14]}