1
0
mirror of https://github.com/uutils/coreutils synced 2024-07-09 04:06:02 +00:00

Cleanup gnu test script (#1701)

This commit is contained in:
jaggededgedjustice 2021-01-21 22:56:02 +00:00 committed by GitHub
parent ea20b22d12
commit 20046013fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ jobs:
default: true
profile: minimal # minimal component installation (ie, no documentation)
components: rustfmt
- name: Run gnu tests
- name: Build binaries
shell: bash
run: |
pushd uutils
@ -40,13 +40,20 @@ jobs:
GNULIB_SRCDIR="$PWD/gnulib"
pushd gnu/
sudo apt-get update
sudo apt-get install autoconf autopoint bison texinfo gperf gcc gdb python-pyinotify
sudo apt-get install autoconf autopoint bison texinfo gperf gcc gdb python-pyinotify expect
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
./configure --quiet --disable-gcc-warnings
# Change the PATH in the Makefile to test the uutils coreutils instead of the GNU coreutils
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${BUILDDIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
sed -i 's| tr | /usr/bin/tr |' tests/init.sh
make
test -f $BUILDDIR/getlimits || cp src/getlimits $BUILDDIR
test -f "${BUILDDIR}/getlimits" || cp src/getlimits "${BUILDDIR}"
- name: Run GNU tests
shell: bash
run: |
BUILDDIR="${PWD}/uutils/target/release"
GNULIB_DIR="${PWD}/gnulib"
pushd gnu
ulimit -t 60
make -j "$(nproc)" check SUBDIRS=. RUN_EXPENSIVE_TESTS=yes RUN_VERY_EXPENSIVE_TESTS=yes VERBOSE=no || :
unbuffer make -j "$(nproc)" check SUBDIRS=. RUN_EXPENSIVE_TESTS=yes RUN_VERY_EXPENSIVE_TESTS=yes VERBOSE=no || :