mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
gnu/usage_vs_getopts.sh: make the test FAIL instead of ERROR
This commit is contained in:
parent
5b09008fc0
commit
981a77d0cd
1 changed files with 7 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# UU_MAKE_PROFILE == 'debug' | 'release' ## build profile for *uutils* build; may be supplied by caller, defaults to 'debug'
|
# UU_MAKE_PROFILE == 'debug' | 'release' ## build profile for *uutils* build; may be supplied by caller, defaults to 'debug'
|
||||||
|
|
||||||
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW baddecode submodules ; (vars/env) SRCDIR
|
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW baddecode submodules ; (vars/env) SRCDIR vdir rcexp
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -150,3 +150,9 @@ sed -i "s/ {ERR_SUBST=>\"s\/(unrecognized|unknown) option \[-' \]\*foobar\[' \]
|
||||||
|
|
||||||
# Remove the check whether a util was built. Otherwise tests against utils like "arch" are not run.
|
# Remove the check whether a util was built. Otherwise tests against utils like "arch" are not run.
|
||||||
sed -i "s|require_built_ |# require_built_ |g" init.cfg
|
sed -i "s|require_built_ |# require_built_ |g" init.cfg
|
||||||
|
|
||||||
|
# with the option -/ is used, clap is returning a better error than GNU's. Adjust the GNU test
|
||||||
|
sed -i -e "s~ grep \" '\*/'\*\" err || framework_failure_~ grep \" '*-/'*\" err || framework_failure_~" tests/misc/usage_vs_getopt.sh
|
||||||
|
sed -i -e "s~ sed -n \"1s/'\\\/'/'OPT'/p\" < err >> pat || framework_failure_~ sed -n \"1s/'-\\\/'/'OPT'/p\" < err >> pat || framework_failure_~" tests/misc/usage_vs_getopt.sh
|
||||||
|
# Ignore some binaries (not built)
|
||||||
|
sed -i -e "s/rcexp=1$/rcexp=1\n case \"\$prg\" in chcon|dir|runcon|vdir) return;; esac/" tests/misc/usage_vs_getopt.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue