mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Cleanup gnu test script (#1701)
This commit is contained in:
parent
ea20b22d12
commit
20046013fb
1 changed files with 11 additions and 4 deletions
15
.github/workflows/GNU.yml
vendored
15
.github/workflows/GNU.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
||||||
default: true
|
default: true
|
||||||
profile: minimal # minimal component installation (ie, no documentation)
|
profile: minimal # minimal component installation (ie, no documentation)
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: Run gnu tests
|
- name: Build binaries
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pushd uutils
|
pushd uutils
|
||||||
|
@ -40,13 +40,20 @@ jobs:
|
||||||
GNULIB_SRCDIR="$PWD/gnulib"
|
GNULIB_SRCDIR="$PWD/gnulib"
|
||||||
pushd gnu/
|
pushd gnu/
|
||||||
sudo apt-get update
|
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"
|
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
|
||||||
./configure --quiet --disable-gcc-warnings
|
./configure --quiet --disable-gcc-warnings
|
||||||
# Change the PATH in the Makefile to test the uutils coreutils instead of the GNU coreutils
|
# 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/^[[:blank:]]*PATH=.*/ PATH='${BUILDDIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
|
||||||
sed -i 's| tr | /usr/bin/tr |' tests/init.sh
|
sed -i 's| tr | /usr/bin/tr |' tests/init.sh
|
||||||
make
|
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
|
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…
Add table
Add a link
Reference in a new issue