Skip to content

Commit ea28b5c

Browse files
committed
GnuTests: 9.10, remove a bunch of backported tests
1 parent fdb7bd7 commit ea28b5c

4 files changed

Lines changed: 7 additions & 43 deletions

File tree

util/build-gnu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ else
124124
: > man/local.mk
125125
# Use CFLAGS for best build time since we discard GNU coreutils
126126
CFLAGS="${CFLAGS} -pipe -O0 -s" ./configure -C --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
127-
--enable-single-binary=symlinks --enable-install-program="arch,kill,uptime,hostname" \
127+
--enable-single-binary=hardlinks --enable-install-program="arch,kill,uptime,hostname" \
128128
"$([ "${SELINUX_ENABLED}" = 1 ] && echo --with-selinux || echo --without-selinux)"
129129
#Add timeout to to protect against hangs
130130
sed -i 's|^"\$@|'"${SYSTEM_TIMEOUT}"' 600 "\$@|' build-aux/test-driver

util/fetch-gnu.sh

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
11
#!/bin/bash -e
2-
ver="9.9"
2+
ver="9.10"
33
repo=https://github.com/coreutils/coreutils
44
curl -L "${repo}/releases/download/v${ver}/coreutils-${ver}.tar.xz" | tar --strip-components=1 -xJf -
55

6-
# TODO stop backporting tests from master at GNU coreutils > 9.9
7-
curl -L ${repo}/raw/refs/heads/master/tests/timeout/timeout.sh > tests/timeout/timeout.sh
8-
curl -L ${repo}/raw/refs/heads/master/tests/timeout/timeout-group.sh > tests/timeout/timeout-group.sh
9-
curl -L ${repo}/raw/refs/heads/master/tests/mv/hardlink-case.sh > tests/mv/hardlink-case.sh
10-
curl -L ${repo}/raw/refs/heads/master/tests/mkdir/writable-under-readonly.sh > tests/mkdir/writable-under-readonly.sh
11-
curl -L ${repo}/raw/refs/heads/master/tests/cp/cp-mv-enotsup-xattr.sh > tests/cp/cp-mv-enotsup-xattr.sh #spell-checker:disable-line
12-
curl -L ${repo}/raw/refs/heads/master/tests/cp/nfs-removal-race.sh > tests/cp/nfs-removal-race.sh
13-
curl -L ${repo}/raw/refs/heads/master/tests/csplit/csplit-io-err.sh > tests/csplit/csplit-io-err.sh
14-
# Replace tests not compatible with our binaries
15-
sed -i -e 's/no-mtab-status.sh/no-mtab-status-masked-proc.sh/' -e 's/nproc-quota.sh/nproc-quota-systemd.sh/' tests/local.mk
16-
curl -L ${repo}/raw/refs/heads/master/tests/df/no-mtab-status-masked-proc.sh > tests/df/no-mtab-status-masked-proc.sh
17-
curl -L ${repo}/raw/refs/heads/master/tests/nproc/nproc-quota-systemd.sh > tests/nproc/nproc-quota-systemd.sh
18-
curl -L ${repo}/raw/refs/heads/master/tests/stty/bad-speed.sh > tests/stty/bad-speed.sh
19-
# symlink to /bin/false should fail with --help. Freeze commit to avoid regression.
20-
curl -L https://raw.githubusercontent.com/coreutils/coreutils/d5164f3d216917005003877faeb1abe7cae5d765/tests/misc/coreutils.sh > tests/misc/coreutils.sh
21-
# Better support for single binary
22-
curl -L ${repo}/raw/refs/heads/master/tests/env/env.sh > tests/env/env.sh
23-
# Avoid incorrect PASS
24-
curl -L ${repo}/raw/refs/heads/master/tests/runcon/runcon-compute.sh > tests/runcon/runcon-compute.sh
25-
curl -L ${repo}/raw/refs/heads/master/tests/tac/tac-continue.sh > tests/tac/tac-continue.sh
26-
curl -L ${repo}/raw/refs/heads/master/tests/tail/inotify-dir-recreate.sh > tests/tail/inotify-dir-recreate.sh
27-
# Add tac-continue.sh to root tests (it requires root to mount tmpfs)
28-
# Use sed -i.bak for macOS
29-
sed -i.bak 's|tests/split/l-chunk-root.sh.*|tests/split/l-chunk-root.sh\t\t\t\\\n tests/tac/tac-continue.sh\t\t\t\\|' tests/local.mk
6+
# TODO stop backporting tests from master at GNU coreutils > $ver
7+
# backport = ()
8+
# for f in ${backport[@]}
9+
# do curl -L ${repo}/raw/refs/heads/master/tests/$f > tests/$f
10+
# done

util/gnu-patches/series

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ tests_sort_merge.pl.patch
1010
tests_du_move_dir_while_traversing.patch
1111
test_mkdir_restorecon.patch
1212
error_msg_uniq.diff
13-
tests_tail_overlay_headers.patch

util/gnu-patches/tests_tail_overlay_headers.patch

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,3 @@
3131
-retry_delay_ wait4lines_ .1 6 13 || fail=1
3232
+# Wait for 8 more lines (should total 13)
3333
+retry_delay_ wait4lines_ .1 6 13 || { echo "Failed waiting for 13 total lines"; fail=1; }
34-
35-
kill $sleep && wait || framework_failure_
36-
37-
-test "$(countlines_)" = 13 || fail=1
38-
+final_count=$(countlines_)
39-
+echo "=== Final line count: $final_count (expected 13) ==="
40-
+
41-
+if test "$final_count" != 13; then
42-
+ echo "=== FAILURE: Expected 13 lines, got $final_count ==="
43-
+ echo "=== Full output content: ==="
44-
+ cat -A out
45-
+ echo "=== End output content ==="
46-
+ fail=1
47-
+fi
48-
49-
Exit $fail

0 commit comments

Comments
 (0)