1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

Merge pull request #3462 from uutils/gnu-skip

GNU testsuite: no need to rerun the GNU build
This commit is contained in:
Terts Diepraam 2022-05-02 17:47:31 +02:00 committed by GitHub
commit 65ad47e95b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,14 +62,23 @@ for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs); do
} }
done done
./bootstrap if test -f gnu-built; then
./configure --quiet --disable-gcc-warnings echo "GNU build already found. Skip"
#Add timeout to to protect against hangs echo "'rm -f $(pwd)/gnu-built' to force the build"
sed -i 's|^"\$@|/usr/bin/timeout 600 "\$@|' build-aux/test-driver echo "Note: the customization of the tests will still happen"
# Change the PATH in the Makefile to test the uutils coreutils instead of the GNU coreutils exit 0
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile else
sed -i 's| tr | /usr/bin/tr |' tests/init.sh ./bootstrap
make -j "$(nproc)" ./configure --quiet --disable-gcc-warnings
#Add timeout to to protect against hangs
sed -i 's|^"\$@|/usr/bin/timeout 600 "\$@|' build-aux/test-driver
# Change the PATH in the Makefile to test the uutils coreutils instead of the GNU coreutils
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
sed -i 's| tr | /usr/bin/tr |' tests/init.sh
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