mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
yes, coreutils: backport(enable) 2 GnuTests (#11480)
This commit is contained in:
@@ -2,7 +2,7 @@ name: GnuTests
|
||||
|
||||
# spell-checker:ignore (abbrev/names) CodeCov gnulib GnuTests Swatinem
|
||||
# spell-checker:ignore (jargon) submodules devel
|
||||
# spell-checker:ignore (libs/utils) chksum dpkg getenforce getlimits gperf lcov libexpect limactl pyinotify setenforce shopt valgrind libattr libcap taiki-e zstd cpio
|
||||
# spell-checker:ignore (libs/utils) chksum dpkg getenforce gperf lcov libexpect limactl pyinotify setenforce shopt valgrind libattr libcap taiki-e zstd cpio
|
||||
# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
|
||||
# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
|
||||
# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
|
||||
|
||||
@@ -138,6 +138,7 @@ EEXIST
|
||||
EINVAL
|
||||
ENODATA
|
||||
ENOENT
|
||||
ENOSPC
|
||||
ENOSYS
|
||||
ENOTEMPTY
|
||||
EOPNOTSUPP
|
||||
@@ -363,6 +364,7 @@ uutils
|
||||
getcwd
|
||||
|
||||
# * other
|
||||
getlimits
|
||||
weblate
|
||||
algs
|
||||
wasm
|
||||
|
||||
@@ -9,7 +9,7 @@ use clap::{Arg, ArgAction, Command, builder::ValueParser};
|
||||
use std::error::Error;
|
||||
use std::ffi::OsString;
|
||||
use std::io::{self, Write};
|
||||
use uucore::error::{UResult, USimpleError};
|
||||
use uucore::error::{UResult, USimpleError, strip_errno};
|
||||
use uucore::format_usage;
|
||||
use uucore::translate;
|
||||
|
||||
@@ -33,7 +33,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
Err(err) if err.kind() == io::ErrorKind::BrokenPipe => Ok(()),
|
||||
Err(err) => Err(USimpleError::new(
|
||||
1,
|
||||
translate!("yes-error-standard-output", "error" => err),
|
||||
translate!("yes-error-standard-output", "error" => strip_errno(&err)),
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user