Merge pull request #144061 from helsinki-systems/fix/coreutils-tests

[staging] coreutils: Enable more tests and drop unused patches
This commit is contained in:
Janne Heß
2021-11-09 13:39:30 +01:00
committed by GitHub
2 changed files with 4 additions and 1271 deletions
File diff suppressed because it is too large Load Diff
+4 -12
View File
@@ -33,7 +33,7 @@ stdenv.mkDerivation (rec {
./fix-chmod-exit-code.patch
# Workaround for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51433
./disable-seek-hole.patch
] ++ optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch;
];
postPatch = ''
# The test tends to fail on btrfs,f2fs and maybe other unusual filesystems.
@@ -43,9 +43,6 @@ stdenv.mkDerivation (rec {
sed '2i echo Skipping rm deep-2 test && exit 77' -i ./tests/rm/deep-2.sh
sed '2i echo Skipping du long-from-unreadable test && exit 77' -i ./tests/du/long-from-unreadable.sh
# Depends on the mountpoints
sed '2i echo Skipping df df-symlink test && exit 77' -i ./tests/df/df-symlink.sh
# Some target platforms, especially when building inside a container have
# issues with the inotify test.
sed '2i echo Skipping tail inotify dir recreate test && exit 77' -i ./tests/tail-2/inotify-dir-recreate.sh
@@ -55,8 +52,6 @@ stdenv.mkDerivation (rec {
substituteInPlace ./tests/install/install-C.sh \
--replace 'mode3=2755' 'mode3=1755'
sed '2i print "Skipping env -S test"; exit 77;' -i ./tests/misc/env-S.pl
# Fails on systems with a rootfs. Looks like a bug in the test, see
# https://lists.gnu.org/archive/html/bug-coreutils/2019-12/msg00000.html
sed '2i print "Skipping df skip-rootfs test"; exit 77' -i ./tests/df/skip-rootfs.sh
@@ -69,12 +64,6 @@ stdenv.mkDerivation (rec {
echo "int main() { return 77; }" > "$f"
done
# tests try to access user 1000 which is forbidden in sandbox
sed '2i print "Skipping id uid test"; exit 77' -i ./tests/id/uid.sh
sed '2i print "Skipping id zero test"; exit 77' -i ./tests/id/zero.sh
sed '2i print "Skipping misc help-versiob test"; exit 77' -i ./tests/misc/help-version.sh
sed '2i print "Skipping chown separator test"; exit 77' -i ./tests/chown/separator.sh
# intermittent failures on builders, unknown reason
sed '2i echo Skipping du basic test && exit 77' -i ./tests/du/basic.sh
'' + (optionalString (stdenv.hostPlatform.libc == "musl") (lib.concatStringsSep "\n" [
@@ -84,6 +73,9 @@ stdenv.mkDerivation (rec {
''
])) + (optionalString stdenv.isAarch64 ''
sed '2i print "Skipping tail assert test"; exit 77' -i ./tests/tail-2/assert.sh
# Sometimes fails: https://github.com/NixOS/nixpkgs/pull/143097#issuecomment-954462584
sed '2i echo Skipping cut huge range test && exit 77' -i ./tests/misc/cut-huge-range.sh
'');
outputs = [ "out" "info" ];