Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/GnuTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: GnuTests
# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
# spell-checker:ignore userns

# * note: to run a single test => `REPO/util/run-gnu-test.sh PATH/TO/TEST/SCRIPT`

Expand Down Expand Up @@ -116,6 +117,9 @@ jobs:
- name: Run GNU tests
shell: bash
run: |
## Use unshare
sudo sysctl -w kernel.unprivileged_userns_clone=1
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
## Run GNU tests
path_GNU='gnu'
path_UUTILS='uutils'
Expand Down
4 changes: 3 additions & 1 deletion util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# spell-checker:ignore (paths) abmon deref discrim eacces getlimits 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
# spell-checker:ignore openat TOCTOU CFLAGS tmpfs

set -e

Expand Down Expand Up @@ -171,6 +171,8 @@ grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir
"${SED}" -i 's/^print_ver_.*/require_selinux_/' tests/runcon/runcon-no-reorder.sh
"${SED}" -i 's/^print_ver_.*/require_selinux_/' tests/chcon/chcon-fail.sh

# Mask mtab by unshare instead of LD_PRELOAD (able to merge this to GNU?)
"${SED}" -i -e 's|^export LD_PRELOAD=.*||' -e "s|.*maybe LD_PRELOAD.*|df() { unshare -rm bash -c \"mount -t tmpfs tmpfs /proc \&\& command df \\\\\"\\\\\$@\\\\\"\" -- \"\$@\"; }|" tests/df/no-mtab-status.sh
# We use coreutils yes
"${SED}" -i "s|--coreutils-prog=||g" tests/misc/coreutils.sh
# Different message
Expand Down
1 change: 1 addition & 0 deletions util/why-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This file documents why some GNU tests are failing:
* dd/nocache_eof.sh
* dd/skip-seek-past-file.sh - https://github.com/uutils/coreutils/issues/7216
* dd/stderr.sh
* tests/df/no-mtab-status.sh - https://github.com/uutils/coreutils/issues/9760
* fmt/non-space.sh
* help/help-version-getopt.sh
* help/help-version.sh
Expand Down
1 change: 0 additions & 1 deletion util/why-skip.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* tests/rm/rm-readdir-fail.sh
* tests/rm/r-root.sh
* tests/df/skip-duplicates.sh
* tests/df/no-mtab-status.sh

= LD_PRELOAD was ineffective? =
* tests/cp/nfs-removal-race.sh
Expand Down
Loading