aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-12 08:58:58 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-29 08:52:25 -0300
commit2301ab23488b9db95eba40750f355a4439468b89 (patch)
treedf1c57c465dea764eee0badaf08e1c53a89ea70b /test
parentbuild: standardize parallel make arguments (diff)
downloadfirejail-2301ab23488b9db95eba40750f355a4439468b89.tar.gz
firejail-2301ab23488b9db95eba40750f355a4439468b89.tar.zst
firejail-2301ab23488b9db95eba40750f355a4439468b89.zip
build: standardize ./configure arguments
For consistency and to make it clearer where jobs differ (for example, to see where `--enable-analyzer` is used). Changes: * Always use --prefix=/usr and --enable-fatal-warnings (except in the Alpine job due to current warnings; see #6224) * Use the same argument order Note: mkdeb.sh and platform/rpm/mkrpm.sh already pass `--prefix=/usr` to ./configure.
Diffstat (limited to 'test')
-rwxr-xr-xtest/compile/compile.sh94
1 files changed, 75 insertions, 19 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index 30bfe9e66..f3e5c4f33 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -81,7 +81,9 @@ tar -xJvf ../../"$DIST.tar.xz"
81mv "$DIST" firejail 81mv "$DIST" firejail
82 82
83cd firejail || exit 1 83cd firejail || exit 1
84./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure 84./configure --prefix=/usr --enable-fatal-warnings \
85 2>&1 | tee ../output-configure
86
85make -j "$(nproc)" 2>&1 | tee ../output-make 87make -j "$(nproc)" 2>&1 | tee ../output-make
86cd .. 88cd ..
87grep Warning output-configure output-make > ./report-test1 89grep Warning output-configure output-make > ./report-test1
@@ -98,7 +100,10 @@ rm output-configure output-make
98print_title "${arr[2]}" 100print_title "${arr[2]}"
99cd firejail || exit 1 101cd firejail || exit 1
100make distclean 102make distclean
101./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure 103./configure --prefix=/usr --enable-fatal-warnings \
104 --disable-dbusproxy \
105 2>&1 | tee ../output-configure
106
102make -j "$(nproc)" 2>&1 | tee ../output-make 107make -j "$(nproc)" 2>&1 | tee ../output-make
103cd .. 108cd ..
104grep Warning output-configure output-make > ./report-test2 109grep Warning output-configure output-make > ./report-test2
@@ -115,7 +120,10 @@ rm output-configure output-make
115print_title "${arr[3]}" 120print_title "${arr[3]}"
116cd firejail || exit 1 121cd firejail || exit 1
117make distclean 122make distclean
118./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure 123./configure --prefix=/usr --enable-fatal-warnings \
124 --disable-chroot \
125 2>&1 | tee ../output-configure
126
119make -j "$(nproc)" 2>&1 | tee ../output-make 127make -j "$(nproc)" 2>&1 | tee ../output-make
120cd .. 128cd ..
121grep Warning output-configure output-make > ./report-test3 129grep Warning output-configure output-make > ./report-test3
@@ -132,7 +140,10 @@ rm output-configure output-make
132print_title "${arr[4]}" 140print_title "${arr[4]}"
133cd firejail || exit 1 141cd firejail || exit 1
134make distclean 142make distclean
135./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure 143./configure --prefix=/usr --enable-fatal-warnings \
144 --disable-firetunnel \
145 2>&1 | tee ../output-configure
146
136make -j "$(nproc)" 2>&1 | tee ../output-make 147make -j "$(nproc)" 2>&1 | tee ../output-make
137cd .. 148cd ..
138grep Warning output-configure output-make > ./report-test4 149grep Warning output-configure output-make > ./report-test4
@@ -149,7 +160,10 @@ rm output-configure output-make
149print_title "${arr[5]}" 160print_title "${arr[5]}"
150cd firejail || exit 1 161cd firejail || exit 1
151make distclean 162make distclean
152./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure 163./configure --prefix=/usr --enable-fatal-warnings \
164 --disable-userns \
165 2>&1 | tee ../output-configure
166
153make -j "$(nproc)" 2>&1 | tee ../output-make 167make -j "$(nproc)" 2>&1 | tee ../output-make
154cd .. 168cd ..
155grep Warning output-configure output-make > ./report-test5 169grep Warning output-configure output-make > ./report-test5
@@ -167,7 +181,10 @@ rm output-configure output-make
167print_title "${arr[6]}" 181print_title "${arr[6]}"
168cd firejail || exit 1 182cd firejail || exit 1
169make distclean 183make distclean
170./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure 184./configure --prefix=/usr --enable-fatal-warnings \
185 --disable-network \
186 2>&1 | tee ../output-configure
187
171make -j "$(nproc)" 2>&1 | tee ../output-make 188make -j "$(nproc)" 2>&1 | tee ../output-make
172cd .. 189cd ..
173grep Warning output-configure output-make > ./report-test6 190grep Warning output-configure output-make > ./report-test6
@@ -184,7 +201,10 @@ rm output-configure output-make
184print_title "${arr[7]}" 201print_title "${arr[7]}"
185cd firejail || exit 1 202cd firejail || exit 1
186make distclean 203make distclean
187./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure 204./configure --prefix=/usr --enable-fatal-warnings \
205 --disable-x11 \
206 2>&1 | tee ../output-configure
207
188make -j "$(nproc)" 2>&1 | tee ../output-make 208make -j "$(nproc)" 2>&1 | tee ../output-make
189cd .. 209cd ..
190grep Warning output-configure output-make > ./report-test7 210grep Warning output-configure output-make > ./report-test7
@@ -201,7 +221,10 @@ rm output-configure output-make
201print_title "${arr[8]}" 221print_title "${arr[8]}"
202cd firejail || exit 1 222cd firejail || exit 1
203make distclean 223make distclean
204./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure 224./configure --prefix=/usr --enable-fatal-warnings \
225 --enable-selinux \
226 2>&1 | tee ../output-configure
227
205make -j "$(nproc)" 2>&1 | tee ../output-make 228make -j "$(nproc)" 2>&1 | tee ../output-make
206cd .. 229cd ..
207grep Warning output-configure output-make > ./report-test8 230grep Warning output-configure output-make > ./report-test8
@@ -218,7 +241,10 @@ rm output-configure output-make
218print_title "${arr[9]}" 241print_title "${arr[9]}"
219cd firejail || exit 1 242cd firejail || exit 1
220make distclean 243make distclean
221./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure 244./configure --prefix=/usr --enable-fatal-warnings \
245 --disable-file-transfer \
246 2>&1 | tee ../output-configure
247
222make -j "$(nproc)" 2>&1 | tee ../output-make 248make -j "$(nproc)" 2>&1 | tee ../output-make
223cd .. 249cd ..
224grep Warning output-configure output-make > ./report-test9 250grep Warning output-configure output-make > ./report-test9
@@ -235,7 +261,10 @@ rm output-configure output-make
235print_title "${arr[10]}" 261print_title "${arr[10]}"
236cd firejail || exit 1 262cd firejail || exit 1
237make distclean 263make distclean
238./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure 264./configure --prefix=/usr --enable-fatal-warnings \
265 --disable-whitelist \
266 2>&1 | tee ../output-configure
267
239make -j "$(nproc)" 2>&1 | tee ../output-make 268make -j "$(nproc)" 2>&1 | tee ../output-make
240cd .. 269cd ..
241grep Warning output-configure output-make > ./report-test10 270grep Warning output-configure output-make > ./report-test10
@@ -252,7 +281,10 @@ rm output-configure output-make
252print_title "${arr[11]}" 281print_title "${arr[11]}"
253cd firejail || exit 1 282cd firejail || exit 1
254make distclean 283make distclean
255./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure 284./configure --prefix=/usr --enable-fatal-warnings \
285 --disable-globalcfg \
286 2>&1 | tee ../output-configure
287
256make -j "$(nproc)" 2>&1 | tee ../output-make 288make -j "$(nproc)" 2>&1 | tee ../output-make
257cd .. 289cd ..
258grep Warning output-configure output-make > ./report-test11 290grep Warning output-configure output-make > ./report-test11
@@ -269,7 +301,10 @@ rm output-configure output-make
269print_title "${arr[12]}" 301print_title "${arr[12]}"
270cd firejail || exit 1 302cd firejail || exit 1
271make distclean 303make distclean
272./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure 304./configure --prefix=/usr --enable-fatal-warnings \
305 --enable-apparmor \
306 2>&1 | tee ../output-configure
307
273make -j "$(nproc)" 2>&1 | tee ../output-make 308make -j "$(nproc)" 2>&1 | tee ../output-make
274cd .. 309cd ..
275grep Warning output-configure output-make > ./report-test12 310grep Warning output-configure output-make > ./report-test12
@@ -286,7 +321,10 @@ rm output-configure output-make
286print_title "${arr[13]}" 321print_title "${arr[13]}"
287cd firejail || exit 1 322cd firejail || exit 1
288make distclean 323make distclean
289./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure 324./configure --prefix=/usr --enable-fatal-warnings \
325 --enable-busybox-workaround \
326 2>&1 | tee ../output-configure
327
290make -j "$(nproc)" 2>&1 | tee ../output-make 328make -j "$(nproc)" 2>&1 | tee ../output-make
291cd .. 329cd ..
292grep Warning output-configure output-make > ./report-test13 330grep Warning output-configure output-make > ./report-test13
@@ -303,7 +341,10 @@ rm output-configure output-make
303print_title "${arr[14]}" 341print_title "${arr[14]}"
304cd firejail || exit 1 342cd firejail || exit 1
305make distclean 343make distclean
306./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure 344./configure --prefix=/usr --enable-fatal-warnings \
345 --disable-overlayfs \
346 2>&1 | tee ../output-configure
347
307make -j "$(nproc)" 2>&1 | tee ../output-make 348make -j "$(nproc)" 2>&1 | tee ../output-make
308cd .. 349cd ..
309grep Warning output-configure output-make > ./report-test14 350grep Warning output-configure output-make > ./report-test14
@@ -320,7 +361,10 @@ rm output-configure output-make
320print_title "${arr[15]}" 361print_title "${arr[15]}"
321cd firejail || exit 1 362cd firejail || exit 1
322make distclean 363make distclean
323./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure 364./configure --prefix=/usr --enable-fatal-warnings \
365 --disable-private-home \
366 2>&1 | tee ../output-configure
367
324make -j "$(nproc)" 2>&1 | tee ../output-make 368make -j "$(nproc)" 2>&1 | tee ../output-make
325cd .. 369cd ..
326grep Warning output-configure output-make > ./report-test15 370grep Warning output-configure output-make > ./report-test15
@@ -337,7 +381,10 @@ rm output-configure output-make
337print_title "${arr[16]}" 381print_title "${arr[16]}"
338cd firejail || exit 1 382cd firejail || exit 1
339make distclean 383make distclean
340./configure --prefix=/usr --disable-man --enable-fatal-warnings 2>&1 | tee ../output-configure 384./configure --prefix=/usr --enable-fatal-warnings \
385 --disable-man \
386 2>&1 | tee ../output-configure
387
341make -j "$(nproc)" 2>&1 | tee ../output-make 388make -j "$(nproc)" 2>&1 | tee ../output-make
342cd .. 389cd ..
343grep Warning output-configure output-make > ./report-test16 390grep Warning output-configure output-make > ./report-test16
@@ -354,7 +401,10 @@ rm output-configure output-make
354print_title "${arr[17]}" 401print_title "${arr[17]}"
355cd firejail || exit 1 402cd firejail || exit 1
356make distclean 403make distclean
357./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure 404./configure --prefix=/usr --enable-fatal-warnings \
405 --disable-usertmpfs \
406 2>&1 | tee ../output-configure
407
358make -j "$(nproc)" 2>&1 | tee ../output-make 408make -j "$(nproc)" 2>&1 | tee ../output-make
359cd .. 409cd ..
360grep Warning output-configure output-make > ./report-test17 410grep Warning output-configure output-make > ./report-test17
@@ -371,7 +421,10 @@ rm output-configure output-make
371print_title "${arr[18]}" 421print_title "${arr[18]}"
372cd firejail || exit 1 422cd firejail || exit 1
373make distclean 423make distclean
374./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure 424./configure --prefix=/usr --enable-fatal-warnings \
425 --disable-private-home \
426 2>&1 | tee ../output-configure
427
375make -j "$(nproc)" 2>&1 | tee ../output-make 428make -j "$(nproc)" 2>&1 | tee ../output-make
376cd .. 429cd ..
377grep Warning output-configure output-make > ./report-test18 430grep Warning output-configure output-make > ./report-test18
@@ -388,7 +441,10 @@ rm output-configure output-make
388print_title "${arr[19]}" 441print_title "${arr[19]}"
389cd firejail || exit 1 442cd firejail || exit 1
390make distclean 443make distclean
391./configure --prefix=/usr --enable-ids --enable-fatal-warnings 2>&1 | tee ../output-configure 444./configure --prefix=/usr --enable-fatal-warnings \
445 --enable-ids \
446 2>&1 | tee ../output-configure
447
392make -j "$(nproc)" 2>&1 | tee ../output-make 448make -j "$(nproc)" 2>&1 | tee ../output-make
393cd .. 449cd ..
394grep Warning output-configure output-make > ./report-test19 450grep Warning output-configure output-make > ./report-test19