mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
GNU testsuite: no need to rerun the GNU build
At least, two use cases: * when hacking on test update * when we want to rebuild only Rust coreutils with the right option Indeed, the GNU code should not cache often in this case
This commit is contained in:
parent
f869fafd03
commit
0314f3ed8e
1 changed files with 17 additions and 8 deletions
|
@ -62,6 +62,12 @@ for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs); do
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if test -f gnu-built; then
|
||||||
|
echo "GNU build already found. Skip"
|
||||||
|
echo "'rm -f $(pwd)/gnu-built' to force the build"
|
||||||
|
echo "Note: the customization of the tests will still happen"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
./bootstrap
|
./bootstrap
|
||||||
./configure --quiet --disable-gcc-warnings
|
./configure --quiet --disable-gcc-warnings
|
||||||
#Add timeout to to protect against hangs
|
#Add timeout to to protect against hangs
|
||||||
|
@ -70,6 +76,9 @@ sed -i 's|^"\$@|/usr/bin/timeout 600 "\$@|' build-aux/test-driver
|
||||||
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
|
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
|
||||||
sed -i 's| tr | /usr/bin/tr |' tests/init.sh
|
sed -i 's| tr | /usr/bin/tr |' tests/init.sh
|
||||||
make -j "$(nproc)"
|
make -j "$(nproc)"
|
||||||
|
touch gnu-built
|
||||||
|
fi
|
||||||
|
|
||||||
# Handle generated factor tests
|
# Handle generated factor tests
|
||||||
t_first=00
|
t_first=00
|
||||||
t_max=36
|
t_max=36
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue