1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

fix/CICD ~ (GnuTests) disable factor tests

This commit is contained in:
Roy Ivy III 2022-02-21 21:52:52 -06:00 committed by Sylvestre Ledru
parent a46521bb8f
commit baaa1639e1

View file

@ -73,25 +73,25 @@ make -j "$(nproc)"
# Handle generated factor tests # Handle generated factor tests
t_first=00 t_first=00
t_max=36 t_max=36
t_max_release=20 # t_max_release=20
if test "${UU_MAKE_PROFILE}" != "debug"; then # if test "${UU_MAKE_PROFILE}" != "debug"; then
# Generate the factor tests, so they can be fixed # # Generate the factor tests, so they can be fixed
# * reduced to 20 to decrease log size (down from 36 expected by GNU) # # * reduced to 20 to decrease log size (down from 36 expected by GNU)
# * only for 'release', skipped for 'debug' as redundant and too time consuming (causing timeout errors) # # * only for 'release', skipped for 'debug' as redundant and too time consuming (causing timeout errors)
seq=$( # seq=$(
i=${t_first} # i=${t_first}
while test "${i}" -le "${t_max_release}"; do # while test "${i}" -le "${t_max_release}"; do
printf '%02d ' $i # printf '%02d ' $i
i=$((i + 1)) # i=$((i + 1))
done # done
) # )
for i in ${seq}; do # for i in ${seq}; do
make "tests/factor/t${i}.sh" # make "tests/factor/t${i}.sh"
done # done
cat # cat
sed -i -e 's|^seq |/usr/bin/seq |' -e 's|sha1sum |/usr/bin/sha1sum |' tests/factor/t*.sh # sed -i -e 's|^seq |/usr/bin/seq |' -e 's|sha1sum |/usr/bin/sha1sum |' tests/factor/t*.sh
t_first=$((t_max_release + 1)) # t_first=$((t_max_release + 1))
fi # fi
# strip all (debug) or just the longer (release) factor tests from Makefile # strip all (debug) or just the longer (release) factor tests from Makefile
seq=$( seq=$(
i=${t_first} i=${t_first}