diff options
author | 2024-02-12 08:58:58 -0300 | |
---|---|---|
committer | 2024-02-29 08:52:25 -0300 | |
commit | 2301ab23488b9db95eba40750f355a4439468b89 (patch) | |
tree | df1c57c465dea764eee0badaf08e1c53a89ea70b /test | |
parent | build: standardize parallel make arguments (diff) | |
download | firejail-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-x | test/compile/compile.sh | 94 |
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" | |||
81 | mv "$DIST" firejail | 81 | mv "$DIST" firejail |
82 | 82 | ||
83 | cd firejail || exit 1 | 83 | cd 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 | |||
85 | make -j "$(nproc)" 2>&1 | tee ../output-make | 87 | make -j "$(nproc)" 2>&1 | tee ../output-make |
86 | cd .. | 88 | cd .. |
87 | grep Warning output-configure output-make > ./report-test1 | 89 | grep Warning output-configure output-make > ./report-test1 |
@@ -98,7 +100,10 @@ rm output-configure output-make | |||
98 | print_title "${arr[2]}" | 100 | print_title "${arr[2]}" |
99 | cd firejail || exit 1 | 101 | cd firejail || exit 1 |
100 | make distclean | 102 | make 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 | |||
102 | make -j "$(nproc)" 2>&1 | tee ../output-make | 107 | make -j "$(nproc)" 2>&1 | tee ../output-make |
103 | cd .. | 108 | cd .. |
104 | grep Warning output-configure output-make > ./report-test2 | 109 | grep Warning output-configure output-make > ./report-test2 |
@@ -115,7 +120,10 @@ rm output-configure output-make | |||
115 | print_title "${arr[3]}" | 120 | print_title "${arr[3]}" |
116 | cd firejail || exit 1 | 121 | cd firejail || exit 1 |
117 | make distclean | 122 | make 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 | |||
119 | make -j "$(nproc)" 2>&1 | tee ../output-make | 127 | make -j "$(nproc)" 2>&1 | tee ../output-make |
120 | cd .. | 128 | cd .. |
121 | grep Warning output-configure output-make > ./report-test3 | 129 | grep Warning output-configure output-make > ./report-test3 |
@@ -132,7 +140,10 @@ rm output-configure output-make | |||
132 | print_title "${arr[4]}" | 140 | print_title "${arr[4]}" |
133 | cd firejail || exit 1 | 141 | cd firejail || exit 1 |
134 | make distclean | 142 | make 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 | |||
136 | make -j "$(nproc)" 2>&1 | tee ../output-make | 147 | make -j "$(nproc)" 2>&1 | tee ../output-make |
137 | cd .. | 148 | cd .. |
138 | grep Warning output-configure output-make > ./report-test4 | 149 | grep Warning output-configure output-make > ./report-test4 |
@@ -149,7 +160,10 @@ rm output-configure output-make | |||
149 | print_title "${arr[5]}" | 160 | print_title "${arr[5]}" |
150 | cd firejail || exit 1 | 161 | cd firejail || exit 1 |
151 | make distclean | 162 | make 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 | |||
153 | make -j "$(nproc)" 2>&1 | tee ../output-make | 167 | make -j "$(nproc)" 2>&1 | tee ../output-make |
154 | cd .. | 168 | cd .. |
155 | grep Warning output-configure output-make > ./report-test5 | 169 | grep Warning output-configure output-make > ./report-test5 |
@@ -167,7 +181,10 @@ rm output-configure output-make | |||
167 | print_title "${arr[6]}" | 181 | print_title "${arr[6]}" |
168 | cd firejail || exit 1 | 182 | cd firejail || exit 1 |
169 | make distclean | 183 | make 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 | |||
171 | make -j "$(nproc)" 2>&1 | tee ../output-make | 188 | make -j "$(nproc)" 2>&1 | tee ../output-make |
172 | cd .. | 189 | cd .. |
173 | grep Warning output-configure output-make > ./report-test6 | 190 | grep Warning output-configure output-make > ./report-test6 |
@@ -184,7 +201,10 @@ rm output-configure output-make | |||
184 | print_title "${arr[7]}" | 201 | print_title "${arr[7]}" |
185 | cd firejail || exit 1 | 202 | cd firejail || exit 1 |
186 | make distclean | 203 | make 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 | |||
188 | make -j "$(nproc)" 2>&1 | tee ../output-make | 208 | make -j "$(nproc)" 2>&1 | tee ../output-make |
189 | cd .. | 209 | cd .. |
190 | grep Warning output-configure output-make > ./report-test7 | 210 | grep Warning output-configure output-make > ./report-test7 |
@@ -201,7 +221,10 @@ rm output-configure output-make | |||
201 | print_title "${arr[8]}" | 221 | print_title "${arr[8]}" |
202 | cd firejail || exit 1 | 222 | cd firejail || exit 1 |
203 | make distclean | 223 | make 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 | |||
205 | make -j "$(nproc)" 2>&1 | tee ../output-make | 228 | make -j "$(nproc)" 2>&1 | tee ../output-make |
206 | cd .. | 229 | cd .. |
207 | grep Warning output-configure output-make > ./report-test8 | 230 | grep Warning output-configure output-make > ./report-test8 |
@@ -218,7 +241,10 @@ rm output-configure output-make | |||
218 | print_title "${arr[9]}" | 241 | print_title "${arr[9]}" |
219 | cd firejail || exit 1 | 242 | cd firejail || exit 1 |
220 | make distclean | 243 | make 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 | |||
222 | make -j "$(nproc)" 2>&1 | tee ../output-make | 248 | make -j "$(nproc)" 2>&1 | tee ../output-make |
223 | cd .. | 249 | cd .. |
224 | grep Warning output-configure output-make > ./report-test9 | 250 | grep Warning output-configure output-make > ./report-test9 |
@@ -235,7 +261,10 @@ rm output-configure output-make | |||
235 | print_title "${arr[10]}" | 261 | print_title "${arr[10]}" |
236 | cd firejail || exit 1 | 262 | cd firejail || exit 1 |
237 | make distclean | 263 | make 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 | |||
239 | make -j "$(nproc)" 2>&1 | tee ../output-make | 268 | make -j "$(nproc)" 2>&1 | tee ../output-make |
240 | cd .. | 269 | cd .. |
241 | grep Warning output-configure output-make > ./report-test10 | 270 | grep Warning output-configure output-make > ./report-test10 |
@@ -252,7 +281,10 @@ rm output-configure output-make | |||
252 | print_title "${arr[11]}" | 281 | print_title "${arr[11]}" |
253 | cd firejail || exit 1 | 282 | cd firejail || exit 1 |
254 | make distclean | 283 | make 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 | |||
256 | make -j "$(nproc)" 2>&1 | tee ../output-make | 288 | make -j "$(nproc)" 2>&1 | tee ../output-make |
257 | cd .. | 289 | cd .. |
258 | grep Warning output-configure output-make > ./report-test11 | 290 | grep Warning output-configure output-make > ./report-test11 |
@@ -269,7 +301,10 @@ rm output-configure output-make | |||
269 | print_title "${arr[12]}" | 301 | print_title "${arr[12]}" |
270 | cd firejail || exit 1 | 302 | cd firejail || exit 1 |
271 | make distclean | 303 | make 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 | |||
273 | make -j "$(nproc)" 2>&1 | tee ../output-make | 308 | make -j "$(nproc)" 2>&1 | tee ../output-make |
274 | cd .. | 309 | cd .. |
275 | grep Warning output-configure output-make > ./report-test12 | 310 | grep Warning output-configure output-make > ./report-test12 |
@@ -286,7 +321,10 @@ rm output-configure output-make | |||
286 | print_title "${arr[13]}" | 321 | print_title "${arr[13]}" |
287 | cd firejail || exit 1 | 322 | cd firejail || exit 1 |
288 | make distclean | 323 | make 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 | |||
290 | make -j "$(nproc)" 2>&1 | tee ../output-make | 328 | make -j "$(nproc)" 2>&1 | tee ../output-make |
291 | cd .. | 329 | cd .. |
292 | grep Warning output-configure output-make > ./report-test13 | 330 | grep Warning output-configure output-make > ./report-test13 |
@@ -303,7 +341,10 @@ rm output-configure output-make | |||
303 | print_title "${arr[14]}" | 341 | print_title "${arr[14]}" |
304 | cd firejail || exit 1 | 342 | cd firejail || exit 1 |
305 | make distclean | 343 | make 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 | |||
307 | make -j "$(nproc)" 2>&1 | tee ../output-make | 348 | make -j "$(nproc)" 2>&1 | tee ../output-make |
308 | cd .. | 349 | cd .. |
309 | grep Warning output-configure output-make > ./report-test14 | 350 | grep Warning output-configure output-make > ./report-test14 |
@@ -320,7 +361,10 @@ rm output-configure output-make | |||
320 | print_title "${arr[15]}" | 361 | print_title "${arr[15]}" |
321 | cd firejail || exit 1 | 362 | cd firejail || exit 1 |
322 | make distclean | 363 | make 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 | |||
324 | make -j "$(nproc)" 2>&1 | tee ../output-make | 368 | make -j "$(nproc)" 2>&1 | tee ../output-make |
325 | cd .. | 369 | cd .. |
326 | grep Warning output-configure output-make > ./report-test15 | 370 | grep Warning output-configure output-make > ./report-test15 |
@@ -337,7 +381,10 @@ rm output-configure output-make | |||
337 | print_title "${arr[16]}" | 381 | print_title "${arr[16]}" |
338 | cd firejail || exit 1 | 382 | cd firejail || exit 1 |
339 | make distclean | 383 | make 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 | |||
341 | make -j "$(nproc)" 2>&1 | tee ../output-make | 388 | make -j "$(nproc)" 2>&1 | tee ../output-make |
342 | cd .. | 389 | cd .. |
343 | grep Warning output-configure output-make > ./report-test16 | 390 | grep Warning output-configure output-make > ./report-test16 |
@@ -354,7 +401,10 @@ rm output-configure output-make | |||
354 | print_title "${arr[17]}" | 401 | print_title "${arr[17]}" |
355 | cd firejail || exit 1 | 402 | cd firejail || exit 1 |
356 | make distclean | 403 | make 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 | |||
358 | make -j "$(nproc)" 2>&1 | tee ../output-make | 408 | make -j "$(nproc)" 2>&1 | tee ../output-make |
359 | cd .. | 409 | cd .. |
360 | grep Warning output-configure output-make > ./report-test17 | 410 | grep Warning output-configure output-make > ./report-test17 |
@@ -371,7 +421,10 @@ rm output-configure output-make | |||
371 | print_title "${arr[18]}" | 421 | print_title "${arr[18]}" |
372 | cd firejail || exit 1 | 422 | cd firejail || exit 1 |
373 | make distclean | 423 | make 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 | |||
375 | make -j "$(nproc)" 2>&1 | tee ../output-make | 428 | make -j "$(nproc)" 2>&1 | tee ../output-make |
376 | cd .. | 429 | cd .. |
377 | grep Warning output-configure output-make > ./report-test18 | 430 | grep Warning output-configure output-make > ./report-test18 |
@@ -388,7 +441,10 @@ rm output-configure output-make | |||
388 | print_title "${arr[19]}" | 441 | print_title "${arr[19]}" |
389 | cd firejail || exit 1 | 442 | cd firejail || exit 1 |
390 | make distclean | 443 | make 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 | |||
392 | make -j "$(nproc)" 2>&1 | tee ../output-make | 448 | make -j "$(nproc)" 2>&1 | tee ../output-make |
393 | cd .. | 449 | cd .. |
394 | grep Warning output-configure output-make > ./report-test19 | 450 | grep Warning output-configure output-make > ./report-test19 |