mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
fail tests for any binary not built
This commit is contained in:
parent
3b93995132
commit
e42479b79b
1 changed files with 13 additions and 4 deletions
17
.github/workflows/GNU.yml
vendored
17
.github/workflows/GNU.yml
vendored
|
@ -37,17 +37,26 @@ jobs:
|
||||||
sudo apt-get install autoconf autopoint bison texinfo gperf gcc g++ gdb python-pyinotify expect python3-sphinx
|
sudo apt-get install autoconf autopoint bison texinfo gperf gcc g++ gdb python-pyinotify expect python3-sphinx
|
||||||
pushd uutils
|
pushd uutils
|
||||||
make PROFILE=release
|
make PROFILE=release
|
||||||
cp target/release/install target/release/ginstall # The GNU tests rename this script before running, to avoid confusion with the make target
|
BUILDDIR="$PWD/target/release/"
|
||||||
|
cp ${BUILDDIR}/install ${BUILDDIR}/ginstall # The GNU tests rename this script before running, to avoid confusion with the make target
|
||||||
# Create *sum binaries
|
# Create *sum binaries
|
||||||
for sum in b2sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum
|
for sum in b2sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum
|
||||||
do
|
do
|
||||||
sum_path="target/release/${sum}"
|
sum_path="${BUILDDIR}/${sum}"
|
||||||
fest -f "${sum_path}" || cp target/release/hashsum "${sum_path}"
|
test -f "${sum_path}" || cp "${BUILDDIR}/hashsum" "${sum_path}"
|
||||||
done
|
done
|
||||||
BUILDDIR="$PWD/target/release/"
|
test -f "${BUILDDIR}/[" || cp "${BUILDDIR}/test" "${BUILDDIR}/["
|
||||||
popd
|
popd
|
||||||
GNULIB_SRCDIR="$PWD/gnulib"
|
GNULIB_SRCDIR="$PWD/gnulib"
|
||||||
pushd gnu/
|
pushd gnu/
|
||||||
|
|
||||||
|
# Any binaries that aren't built become `false` so their tests fail
|
||||||
|
for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs)
|
||||||
|
do
|
||||||
|
bin_path="${BUILDDIR}/${binary}"
|
||||||
|
test -f "${bin_path}" || cp "${BUILDDIR}/false" "${bin_path}"
|
||||||
|
done
|
||||||
|
|
||||||
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
|
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
|
||||||
./configure --quiet --disable-gcc-warnings
|
./configure --quiet --disable-gcc-warnings
|
||||||
#Add timeout to to protect against hangs
|
#Add timeout to to protect against hangs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue