|
1 | 1 | #!/bin/bash -e |
2 | | -ver="9.9" |
| 2 | +ver="9.10" |
3 | 3 | repo=https://github.com/coreutils/coreutils |
4 | 4 | curl -L "${repo}/releases/download/v${ver}/coreutils-${ver}.tar.xz" | tar --strip-components=1 -xJf - |
5 | 5 |
|
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 |
0 commit comments