1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

Merge pull request #4791 from cakebaker/build_gnu_always_update_path

build-gnu.sh: always update PATH in Makefile
This commit is contained in:
Sylvestre Ledru 2023-04-26 18:45:04 +02:00 committed by GitHub
commit cf33a6642d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -217,6 +217,8 @@ To run uutils against the GNU test suite locally, run the following commands:
```shell ```shell
bash util/build-gnu.sh bash util/build-gnu.sh
# Build uutils without release optimizations
UU_MAKE_PROFILE=debug bash util/build-gnu.sh
bash util/run-gnu-test.sh bash util/run-gnu-test.sh
# To run a single test: # To run a single test:
bash util/run-gnu-test.sh tests/touch/not-owner.sh # for example bash util/run-gnu-test.sh tests/touch/not-owner.sh # for example

View file

@ -63,6 +63,8 @@ for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs); do
done done
if test -f gnu-built; then if test -f gnu-built; then
# 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
echo "GNU build already found. Skip" echo "GNU build already found. Skip"
echo "'rm -f $(pwd)/gnu-built' to force the build" echo "'rm -f $(pwd)/gnu-built' to force the build"
echo "Note: the customization of the tests will still happen" echo "Note: the customization of the tests will still happen"