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

gnu/ci: allow to run a single gnu test (and document it)

This commit is contained in:
Sylvestre Ledru 2021-06-02 21:21:12 +02:00
parent 0105531b7f
commit e7f5916864
3 changed files with 12 additions and 1 deletions

View file

@ -6,4 +6,10 @@ GNULIB_DIR="${PWD}/gnulib"
pushd gnu
export RUST_BACKTRACE=1
timeout -sKILL 2h make -j "$(nproc)" check SUBDIRS=. RUN_EXPENSIVE_TESTS=yes RUN_VERY_EXPENSIVE_TESTS=yes VERBOSE=no || : # Kill after 4 hours in case something gets stuck in make
if test -n "$1"; then
# if set, run only the test passed
export RUN_TEST="TESTS=$1"
fi
timeout -sKILL 2h make -j "$(nproc)" check $RUN_TEST SUBDIRS=. RUN_EXPENSIVE_TESTS=yes RUN_VERY_EXPENSIVE_TESTS=yes VERBOSE=no || : # Kill after 4 hours in case something gets stuck in make