aboutsummaryrefslogtreecommitdiffstats
path: root/test/compile/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/compile/compile.sh')
-rwxr-xr-xtest/compile/compile.sh43
1 files changed, 22 insertions, 21 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index da6e43a5a..0e3425f8d 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -11,7 +11,8 @@
11# install contrib scripts 11# install contrib scripts
12# --enable-analyzer enable GCC 10 static analyzer 12# --enable-analyzer enable GCC 10 static analyzer
13 13
14 14# shellcheck source=config.sh
15. "$(dirname "$0")/../../config.sh" || exit 1
15 16
16arr[1]="TEST 1: standard compilation" 17arr[1]="TEST 1: standard compilation"
17arr[2]="TEST 2: compile dbus proxy disabled" 18arr[2]="TEST 2: compile dbus proxy disabled"
@@ -51,7 +52,7 @@ print_title() {
51 echo "**************************************************" 52 echo "**************************************************"
52} 53}
53 54
54DIST="$1" 55DIST="$(TARNAME)-$(VERSION)"
55while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . 56while [[ $# -gt 0 ]]; do # Until you run out of parameters . . .
56 case "$1" in 57 case "$1" in
57 --clean) 58 --clean)
@@ -79,7 +80,7 @@ echo "$DIST"
79tar -xJvf ../../"$DIST.tar.xz" 80tar -xJvf ../../"$DIST.tar.xz"
80mv "$DIST" firejail 81mv "$DIST" firejail
81 82
82cd firejail 83cd firejail || exit 1
83./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure 84./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure
84make -j4 2>&1 | tee ../output-make 85make -j4 2>&1 | tee ../output-make
85cd .. 86cd ..
@@ -95,7 +96,7 @@ rm output-configure output-make
95# - disable dbus proxy configuration 96# - disable dbus proxy configuration
96#***************************************************************** 97#*****************************************************************
97print_title "${arr[2]}" 98print_title "${arr[2]}"
98cd firejail 99cd firejail || exit 1
99make distclean 100make distclean
100./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure 101./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure
101make -j4 2>&1 | tee ../output-make 102make -j4 2>&1 | tee ../output-make
@@ -112,7 +113,7 @@ rm output-configure output-make
112# - disable chroot configuration 113# - disable chroot configuration
113#***************************************************************** 114#*****************************************************************
114print_title "${arr[3]}" 115print_title "${arr[3]}"
115cd firejail 116cd firejail || exit 1
116make distclean 117make distclean
117./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure 118./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure
118make -j4 2>&1 | tee ../output-make 119make -j4 2>&1 | tee ../output-make
@@ -129,7 +130,7 @@ rm output-configure output-make
129# - disable firetunnel configuration 130# - disable firetunnel configuration
130#***************************************************************** 131#*****************************************************************
131print_title "${arr[4]}" 132print_title "${arr[4]}"
132cd firejail 133cd firejail || exit 1
133make distclean 134make distclean
134./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure 135./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure
135make -j4 2>&1 | tee ../output-make 136make -j4 2>&1 | tee ../output-make
@@ -146,7 +147,7 @@ rm output-configure output-make
146# - disable user namespace configuration 147# - disable user namespace configuration
147#***************************************************************** 148#*****************************************************************
148print_title "${arr[5]}" 149print_title "${arr[5]}"
149cd firejail 150cd firejail || exit 1
150make distclean 151make distclean
151./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure 152./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure
152make -j4 2>&1 | tee ../output-make 153make -j4 2>&1 | tee ../output-make
@@ -164,7 +165,7 @@ rm output-configure output-make
164# - check compilation 165# - check compilation
165#***************************************************************** 166#*****************************************************************
166print_title "${arr[6]}" 167print_title "${arr[6]}"
167cd firejail 168cd firejail || exit 1
168make distclean 169make distclean
169./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure 170./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure
170make -j4 2>&1 | tee ../output-make 171make -j4 2>&1 | tee ../output-make
@@ -181,7 +182,7 @@ rm output-configure output-make
181# - disable X11 support 182# - disable X11 support
182#***************************************************************** 183#*****************************************************************
183print_title "${arr[7]}" 184print_title "${arr[7]}"
184cd firejail 185cd firejail || exit 1
185make distclean 186make distclean
186./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure 187./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure
187make -j4 2>&1 | tee ../output-make 188make -j4 2>&1 | tee ../output-make
@@ -198,7 +199,7 @@ rm output-configure output-make
198# - enable selinux 199# - enable selinux
199#***************************************************************** 200#*****************************************************************
200print_title "${arr[8]}" 201print_title "${arr[8]}"
201cd firejail 202cd firejail || exit 1
202make distclean 203make distclean
203./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure 204./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure
204make -j4 2>&1 | tee ../output-make 205make -j4 2>&1 | tee ../output-make
@@ -215,7 +216,7 @@ rm output-configure output-make
215# - disable file transfer 216# - disable file transfer
216#***************************************************************** 217#*****************************************************************
217print_title "${arr[9]}" 218print_title "${arr[9]}"
218cd firejail 219cd firejail || exit 1
219make distclean 220make distclean
220./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure 221./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure
221make -j4 2>&1 | tee ../output-make 222make -j4 2>&1 | tee ../output-make
@@ -232,7 +233,7 @@ rm output-configure output-make
232# - disable whitelist 233# - disable whitelist
233#***************************************************************** 234#*****************************************************************
234print_title "${arr[10]}" 235print_title "${arr[10]}"
235cd firejail 236cd firejail || exit 1
236make distclean 237make distclean
237./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure 238./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure
238make -j4 2>&1 | tee ../output-make 239make -j4 2>&1 | tee ../output-make
@@ -249,7 +250,7 @@ rm output-configure output-make
249# - disable global config 250# - disable global config
250#***************************************************************** 251#*****************************************************************
251print_title "${arr[11]}" 252print_title "${arr[11]}"
252cd firejail 253cd firejail || exit 1
253make distclean 254make distclean
254./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure 255./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure
255make -j4 2>&1 | tee ../output-make 256make -j4 2>&1 | tee ../output-make
@@ -266,7 +267,7 @@ rm output-configure output-make
266# - enable apparmor 267# - enable apparmor
267#***************************************************************** 268#*****************************************************************
268print_title "${arr[12]}" 269print_title "${arr[12]}"
269cd firejail 270cd firejail || exit 1
270make distclean 271make distclean
271./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure 272./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure
272make -j4 2>&1 | tee ../output-make 273make -j4 2>&1 | tee ../output-make
@@ -283,7 +284,7 @@ rm output-configure output-make
283# - enable busybox workaround 284# - enable busybox workaround
284#***************************************************************** 285#*****************************************************************
285print_title "${arr[13]}" 286print_title "${arr[13]}"
286cd firejail 287cd firejail || exit 1
287make distclean 288make distclean
288./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure 289./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure
289make -j4 2>&1 | tee ../output-make 290make -j4 2>&1 | tee ../output-make
@@ -300,7 +301,7 @@ rm output-configure output-make
300# - disable overlayfs 301# - disable overlayfs
301#***************************************************************** 302#*****************************************************************
302print_title "${arr[14]}" 303print_title "${arr[14]}"
303cd firejail 304cd firejail || exit 1
304make distclean 305make distclean
305./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure 306./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure
306make -j4 2>&1 | tee ../output-make 307make -j4 2>&1 | tee ../output-make
@@ -317,7 +318,7 @@ rm output-configure output-make
317# - disable private home 318# - disable private home
318#***************************************************************** 319#*****************************************************************
319print_title "${arr[15]}" 320print_title "${arr[15]}"
320cd firejail 321cd firejail || exit 1
321make distclean 322make distclean
322./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure 323./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
323make -j4 2>&1 | tee ../output-make 324make -j4 2>&1 | tee ../output-make
@@ -334,7 +335,7 @@ rm output-configure output-make
334# - disable manpages 335# - disable manpages
335#***************************************************************** 336#*****************************************************************
336print_title "${arr[16]}" 337print_title "${arr[16]}"
337cd firejail 338cd firejail || exit 1
338make distclean 339make distclean
339./configure --prefix=/usr --disable-man --enable-fatal-warnings 2>&1 | tee ../output-configure 340./configure --prefix=/usr --disable-man --enable-fatal-warnings 2>&1 | tee ../output-configure
340make -j4 2>&1 | tee ../output-make 341make -j4 2>&1 | tee ../output-make
@@ -351,7 +352,7 @@ rm output-configure output-make
351# - disable tmpfs as regular user" 352# - disable tmpfs as regular user"
352#***************************************************************** 353#*****************************************************************
353print_title "${arr[17]}" 354print_title "${arr[17]}"
354cd firejail 355cd firejail || exit 1
355make distclean 356make distclean
356./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure 357./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure
357make -j4 2>&1 | tee ../output-make 358make -j4 2>&1 | tee ../output-make
@@ -368,7 +369,7 @@ rm output-configure output-make
368# - disable private home feature 369# - disable private home feature
369#***************************************************************** 370#*****************************************************************
370print_title "${arr[18]}" 371print_title "${arr[18]}"
371cd firejail 372cd firejail || exit 1
372make distclean 373make distclean
373./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure 374./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
374make -j4 2>&1 | tee ../output-make 375make -j4 2>&1 | tee ../output-make
@@ -385,7 +386,7 @@ rm output-configure output-make
385# - enable ids 386# - enable ids
386#***************************************************************** 387#*****************************************************************
387print_title "${arr[19]}" 388print_title "${arr[19]}"
388cd firejail 389cd firejail || exit 1
389make distclean 390make distclean
390./configure --prefix=/usr --enable-ids --enable-fatal-warnings 2>&1 | tee ../output-configure 391./configure --prefix=/usr --enable-ids --enable-fatal-warnings 2>&1 | tee ../output-configure
391make -j4 2>&1 | tee ../output-make 392make -j4 2>&1 | tee ../output-make