yes, coreutils: backport(enable) 2 GnuTests (#11480)

This commit is contained in:
oech3
2026-03-25 16:24:32 +09:00
committed by GitHub
parent e0f03181df
commit 572f3a2416
5 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
# `build-gnu.bash` ~ builds GNU coreutils (from supplied sources)
#
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
# spell-checker:ignore (paths) abmon deref discrim eacces getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
# spell-checker:ignore baddecode submodules xstrtol distros ; (vars/env) SRCDIR vdir rcexp xpart dired OSTYPE ; (utils) greadlink gsed multihardlink texinfo CARGOFLAGS
# spell-checker:ignore openat TOCTOU CFLAGS tmpfs gnproc
+9 -4
View File
@@ -4,7 +4,12 @@ repo=https://github.com/coreutils/coreutils
curl -L "${repo}/releases/download/v${ver}/coreutils-${ver}.tar.xz" | tar --strip-components=1 -xJf -
# TODO stop backporting tests from master at GNU coreutils > $ver
# backport = ()
# for f in ${backport[@]}
# do curl -L ${repo}/raw/refs/heads/master/tests/$f > tests/$f
# done
backport=(
misc/coreutils.sh # enable test
misc/yes.sh # zero-copy
)
for f in "${backport[@]}"
do curl -L ${repo}/raw/refs/heads/master/tests/$f > tests/$f
done
# adjust for getlimits > $ver
sed -i.b "s/\$ENOSPC/No space left on device/" tests/misc/yes.sh