mirror of
https://github.com/uutils/coreutils
synced 2024-11-10 07:04:16 +00:00
docs ~ (CICD/util) add/revise spell-checker exceptions
This commit is contained in:
parent
a970c8d45d
commit
f75cfbdebc
6 changed files with 14 additions and 19 deletions
2
.github/workflows/CICD.yml
vendored
2
.github/workflows/CICD.yml
vendored
|
@ -4,7 +4,7 @@ name: CICD
|
||||||
# spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic
|
# spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic
|
||||||
# spell-checker:ignore (jargon) SHAs deps dequote softprops subshell toolchain
|
# spell-checker:ignore (jargon) SHAs deps dequote softprops subshell toolchain
|
||||||
# spell-checker:ignore (names) CodeCOV MacOS MinGW Peltoche rivy
|
# spell-checker:ignore (names) CodeCOV MacOS MinGW Peltoche rivy
|
||||||
# spell-checker:ignore (shell/tools) choco clippy dmake dpkg esac fakeroot gmake grcov halium lcov libssl mkdir popd printf pushd rustc rustfmt rustup shopt xargs
|
# spell-checker:ignore (shell/tools) choco clippy dmake dpkg esac fakeroot gmake grcov halium lcov libssl mkdir popd printf pushd rsync rustc rustfmt rustup shopt xargs
|
||||||
# spell-checker:ignore (misc) aarch alnum armhf bindir busytest coreutils gnueabihf issuecomment maint nullglob onexitbegin onexitend pell runtest tempfile testsuite uutils DESTDIR sizemulti
|
# spell-checker:ignore (misc) aarch alnum armhf bindir busytest coreutils gnueabihf issuecomment maint nullglob onexitbegin onexitend pell runtest tempfile testsuite uutils DESTDIR sizemulti
|
||||||
|
|
||||||
# ToDO: [2021-06; rivy] change from `cargo-tree` to `cargo tree` once MSRV is >= 1.45
|
# ToDO: [2021-06; rivy] change from `cargo-tree` to `cargo tree` once MSRV is >= 1.45
|
||||||
|
|
2
.github/workflows/GnuTests.yml
vendored
2
.github/workflows/GnuTests.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: GnuTests
|
name: GnuTests
|
||||||
|
|
||||||
# spell-checker:ignore (names) gnulib ; (people) Dawid Dziurla * dawidd6 ; (utils) autopoint chksum gperf pyinotify shopt texinfo ; (vars) FILESET XPASS
|
# spell-checker:ignore (names) gnulib ; (jargon) submodules ; (people) Dawid Dziurla * dawidd ; (utils) autopoint chksum gperf pyinotify shopt texinfo ; (vars) FILESET XPASS
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# spell-checker:ignore (jargon) toolchain
|
# spell-checker:ignore (jargon) toolchain
|
||||||
# spell-checker:ignore (rust) Ccodegen Cinline Coverflow Cpanic RUSTC RUSTDOCFLAGS RUSTFLAGS RUSTUP Zpanic
|
# spell-checker:ignore (rust) Ccodegen Cinline Coverflow Cpanic RUSTC RUSTDOCFLAGS RUSTFLAGS RUSTUP Zpanic
|
||||||
# spell-checker:ignore (shell) OSID esac
|
# spell-checker:ignore (shell) OSID esac
|
||||||
# spell-checker:ignore (utils) genhtml grcov lcov readlink sccache uutils
|
# spell-checker:ignore (utils) genhtml grcov lcov readlink sccache shellcheck uutils
|
||||||
|
|
||||||
FEATURES_OPTION="--features feat_os_unix"
|
FEATURES_OPTION="--features feat_os_unix"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall gnulib inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW baddecode ; (vars/env) BUILDDIR SRCDIR
|
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall gnulib inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW baddecode submodules ; (vars/env) BUILDDIR SRCDIR
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
if test ! -d ../gnu; then
|
if test ! -d ../gnu; then
|
||||||
|
@ -14,14 +14,12 @@ if test ! -d ../gnulib; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
pushd "$PWD"
|
pushd "$PWD"
|
||||||
make PROFILE=release
|
make PROFILE=release
|
||||||
BUILDDIR="$PWD/target/release/"
|
BUILDDIR="$PWD/target/release/"
|
||||||
cp "${BUILDDIR}/install" "${BUILDDIR}/ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target
|
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 b3sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum
|
for sum in b2sum b3sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum; do
|
||||||
do
|
|
||||||
sum_path="${BUILDDIR}/${sum}"
|
sum_path="${BUILDDIR}/${sum}"
|
||||||
test -f "${sum_path}" || cp "${BUILDDIR}/hashsum" "${sum_path}"
|
test -f "${sum_path}" || cp "${BUILDDIR}/hashsum" "${sum_path}"
|
||||||
done
|
done
|
||||||
|
@ -31,10 +29,12 @@ GNULIB_SRCDIR="$PWD/../gnulib"
|
||||||
pushd ../gnu/
|
pushd ../gnu/
|
||||||
|
|
||||||
# Any binaries that aren't built become `false` so their tests fail
|
# Any binaries that aren't built become `false` so their tests fail
|
||||||
for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs)
|
for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs); do
|
||||||
do
|
|
||||||
bin_path="${BUILDDIR}/${binary}"
|
bin_path="${BUILDDIR}/${binary}"
|
||||||
test -f "${bin_path}" || { echo "'${binary}' was not built with uutils, using the 'false' program"; cp "${BUILDDIR}/false" "${bin_path}"; }
|
test -f "${bin_path}" || {
|
||||||
|
echo "'${binary}' was not built with uutils, using the 'false' program"
|
||||||
|
cp "${BUILDDIR}/false" "${bin_path}"
|
||||||
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
|
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
|
||||||
|
@ -47,18 +47,15 @@ sed -i 's| tr | /usr/bin/tr |' tests/init.sh
|
||||||
make -j "$(nproc)"
|
make -j "$(nproc)"
|
||||||
# Generate the factor tests, so they can be fixed
|
# Generate the factor tests, so they can be fixed
|
||||||
# Used to be 36. Reduced to 20 to decrease the log size
|
# Used to be 36. Reduced to 20 to decrease the log size
|
||||||
for i in {00..20}
|
for i in {00..20}; do
|
||||||
do
|
|
||||||
make "tests/factor/t${i}.sh"
|
make "tests/factor/t${i}.sh"
|
||||||
done
|
done
|
||||||
|
|
||||||
# strip the long stuff
|
# strip the long stuff
|
||||||
for i in {21..36}
|
for i in {21..36}; do
|
||||||
do
|
|
||||||
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile
|
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
grep -rl 'path_prepend_' tests/* | xargs sed -i 's| path_prepend_ ./src||'
|
grep -rl 'path_prepend_' tests/* | xargs sed -i 's| path_prepend_ ./src||'
|
||||||
sed -i -e 's|^seq |/usr/bin/seq |' -e 's|sha1sum |/usr/bin/sha1sum |' tests/factor/t*sh
|
sed -i -e 's|^seq |/usr/bin/seq |' -e 's|sha1sum |/usr/bin/sha1sum |' tests/factor/t*sh
|
||||||
|
|
||||||
|
@ -97,11 +94,9 @@ sed -i 's|seq |/usr/bin/seq |' tests/misc/sort-discrim.sh
|
||||||
# Add specific timeout to tests that currently hang to limit time spent waiting
|
# Add specific timeout to tests that currently hang to limit time spent waiting
|
||||||
sed -i 's|\(^\s*\)seq \$|\1/usr/bin/timeout 0.1 seq \$|' tests/misc/seq-precision.sh tests/misc/seq-long-double.sh
|
sed -i 's|\(^\s*\)seq \$|\1/usr/bin/timeout 0.1 seq \$|' tests/misc/seq-precision.sh tests/misc/seq-long-double.sh
|
||||||
|
|
||||||
|
|
||||||
# Remove dup of /usr/bin/ when executed several times
|
# Remove dup of /usr/bin/ when executed several times
|
||||||
grep -rlE '/usr/bin/\s?/usr/bin' init.cfg tests/* | xargs --no-run-if-empty sed -Ei 's|/usr/bin/\s?/usr/bin/|/usr/bin/|g'
|
grep -rlE '/usr/bin/\s?/usr/bin' init.cfg tests/* | xargs --no-run-if-empty sed -Ei 's|/usr/bin/\s?/usr/bin/|/usr/bin/|g'
|
||||||
|
|
||||||
|
|
||||||
#### Adjust tests to make them work with Rust/coreutils
|
#### Adjust tests to make them work with Rust/coreutils
|
||||||
# in some cases, what we are doing in rust/coreutils is good (or better)
|
# in some cases, what we are doing in rust/coreutils is good (or better)
|
||||||
# we should not regress our project just to match what GNU is going.
|
# we should not regress our project just to match what GNU is going.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# `$0 [TEST]`
|
# `$0 [TEST]`
|
||||||
# run GNU test (or all tests if TEST is missing/null)
|
# run GNU test (or all tests if TEST is missing/null)
|
||||||
# spell-checker:ignore (env/vars) BUILDDIR GNULIB SUBDIRS
|
# spell-checker:ignore (env/vars) GNULIB SUBDIRS ; (utils) shellcheck
|
||||||
|
|
||||||
ME_dir="$(dirname -- "$(readlink -fm -- "$0")")"
|
ME_dir="$(dirname -- "$(readlink -fm -- "$0")")"
|
||||||
REPO_main_dir="$(dirname -- "${ME_dir}")"
|
REPO_main_dir="$(dirname -- "${ME_dir}")"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# spell-checker:ignore (vars) OSID
|
# spell-checker:ignore (vars) OSID binfmt
|
||||||
|
|
||||||
ME_dir="$(dirname -- "$(readlink -fm -- "$0")")"
|
ME_dir="$(dirname -- "$(readlink -fm -- "$0")")"
|
||||||
REPO_main_dir="$(dirname -- "${ME_dir}")"
|
REPO_main_dir="$(dirname -- "${ME_dir}")"
|
||||||
|
|
Loading…
Reference in a new issue