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:
parent
ea20b22d12
commit
20046013fb
15
.github/workflows/GNU.yml
vendored
15
.github/workflows/GNU.yml
vendored
|
@ -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 || :
|
||||
|
|
Loading…
Reference in New Issue
Block a user