mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-23 09:51:03 -05:00
Add --enable-option-checking=fatal to ./configure in CI
The --enable-option-checking=fatal option prevents ./configure from proceeding when an unknown option is used in the ./configure step in CI. This change will avoid adding unsupported ./configure options or options with typo or typo in pairwise testing "# [pairwise: ...]" marker.
This commit is contained in:
parent
40600d6bf6
commit
4295c82e45
2 changed files with 3 additions and 3 deletions
|
|
@ -214,12 +214,13 @@ stages:
|
|||
${CONFIGURE} \
|
||||
--disable-maintainer-mode \
|
||||
--enable-developer \
|
||||
--enable-option-checking=fatal \
|
||||
--with-cmocka \
|
||||
--with-libxml2 \
|
||||
--with-json-c \
|
||||
--prefix="${BIND_INSTALL_PATH}" \
|
||||
$EXTRA_CONFIGURE \
|
||||
|| cat config.log
|
||||
|| (test -s config.log && cat config.log; exit 1)
|
||||
|
||||
.check_readline_setup: &check_readline_setup |
|
||||
if [[ -n "${WITHOUT_READLINE}" ]]; then \
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@ while read -r -a configure_switches; do
|
|||
mkdir "pairwise-${runid}"
|
||||
cd "pairwise-${runid}"
|
||||
echo "${configure_switches[@]}" | tee "../pairwise-output.${runid}.txt"
|
||||
../configure "${configure_switches[@]}" >> "../pairwise-output.${runid}.txt" 2>&1
|
||||
grep -F "WARNING: unrecognized options:" "../pairwise-output.${runid}.txt" && exit 1
|
||||
../configure --enable-option-checking=fatal "${configure_switches[@]}" >> "../pairwise-output.${runid}.txt" 2>&1
|
||||
make "-j${BUILD_PARALLEL_JOBS:-1}" all >> "../pairwise-output.${runid}.txt" 2>&1
|
||||
cd ..
|
||||
rm -rf "pairwise-${runid}" "pairwise-output.${runid}.txt"
|
||||
|
|
|
|||
Loading…
Reference in a new issue