1
0
mirror of https://github.com/uutils/coreutils synced 2024-07-01 06:54:36 +00:00
Commit Graph

274 Commits

Author SHA1 Message Date
sreehari prasad
dbeae9f444
ls: gnu color-clear-to-eol fix (#6507)
---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-06-29 10:06:00 +02:00
Daniel Hofstetter
9b3b9e8407
Merge pull request #6452 from sylvestre/base64
cksum/hashsum: add support of --check with base64  + other improvs
2024-06-27 09:47:52 +02:00
Sylvestre Ledru
ab2cc2f17a cksum base64: update the GNU test to manage our output 2024-06-25 19:00:23 +02:00
sreehari prasad
92665144c9
ls: gnu color-norm test fix (#6481) 2024-06-24 21:38:10 +02:00
Sylvestre Ledru
276bebcf14 prepare version 0.0.27 2024-06-23 00:24:02 +02:00
Laurent Cheylus
e50a3a4471
show-utils.sh: fix jq query to get coreutils deps
In jq query, the correct regex to select .id is ".*coreutils[ |@|#]\\d+\\.\\d+\\.\\d+"

With cargo <= v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"

With cargo >= v1.77,
- if local path == '<parent directory>/coreutils/', id = "path+file://<parent directory>/coreutils#0.0.26"
- if local path != '<parent directory>/coreutils/', id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils/coreutils#6479

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-06-19 17:35:45 +02:00
Laurent Cheylus
3b96ff1d10 show-utils.sh: fix jq query to get coreutils deps
In jq query, the correct regex to select .id is ".*coreutils[ |@]\\d+\\.\\d+\\.\\d+"

- with cargo v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"
- with cargo v1.77, id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils/coreutils#6242

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-04 18:20:03 +02:00
Ulrich Hornung
5d763358fa
android CI: incremental install when retry 2024-04-26 12:07:35 +02:00
Sylvestre Ledru
4090d468c0
Merge pull request #6162 from BenWiederhake/dev-undo-custom-exit-codes
all: Undo custom exit codes
2024-04-25 08:11:41 +02:00
Ulrich Hornung
d202baba97 use num_prime for factorisation to fix gnu test 2024-04-21 11:24:25 +02:00
Sylvestre Ledru
6ef08d7f1c hashsum: improve the error management to match GNU
Should make tests/cksum/md5sum.pl and tests/cksum/sha1sum.pl pass
2024-04-21 09:08:27 +02:00
Sylvestre Ledru
128c0bc6b5 hashsum: gnu compat no need to replicate this output with hashsum 2024-04-21 09:08:27 +02:00
Ben Wiederhake
120f0312e7 util: undo custom GNU exit codes, reduce number of special cases 2024-04-14 15:42:13 +02:00
Sylvestre Ledru
01ea23ba21 Try to release 0.0.26 to see if the artifacts are generated 2024-03-30 22:51:24 +01:00
Sylvestre Ledru
d535095d0f build-gnu.sh: adjust of some of the path 2024-03-28 21:10:09 +01:00
Sylvestre Ledru
3222c9225c upgrade to GNU coreutils 9.5 as ref 2024-03-28 20:43:49 +01:00
Terts Diepraam
3b80d75ee7 show-utils.sh: fix jq query 2024-03-24 10:57:31 +01:00
Sylvestre Ledru
2246a0fad1 0.0.24 => 0.0.25 2024-03-23 22:08:05 +01:00
Ulrich Hornung
f3bbf53412
improve debug info provided by CI 2024-03-23 16:36:01 +01:00
thesayfulla
9cfdf401d0 added shebang to run python scripts 2024-03-20 19:41:00 +05:00
Ulrich Hornung
c62ba559d0 env: support string args by "-S", "-vS" or "--split-strings" 2024-03-19 00:45:05 +01:00
Daniel Hofstetter
727101ccf3
Merge pull request #6087 from sylvestre/pr2
pr: relax some error messages
2024-03-18 10:30:41 +01:00
Daniel Hofstetter
b9ef78ad13
build-gnu.sh: add xstrtol to spell-checker:ignore 2024-03-16 16:54:03 +01:00
Sylvestre Ledru
f0520b71c1 pr: relax some error messages
Should make tests/pr/pr-tests.pl pass
2024-03-16 12:28:09 +01:00
Sylvestre Ledru
2a1ac55081 du: adjust one of the GNU error message as ours is better 2024-03-16 10:06:24 +01:00
Sylvestre Ledru
1725479c06
hashsum: also escape/unescape files with checks (#5868)
* hashsum: make tag conflicts with --text and --check

* hashsum: change the case in one of the gnu test

* build-gnu.sh: use symlink instead of copy

Plus: it won't cp new md5

* hashsum: also escape/unescape files with checks

Should fix tests/cksum/md5sum-bsd.sh

* improve the variable name

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Improve test

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Improve test

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-03-12 14:56:27 +01:00
Ulrich Hornung
263a16317b workaround: run builds with retry (a) 2024-02-25 19:09:26 +01:00
Ulrich Hornung
ce04315424
set environmental variable to right value 2024-02-10 15:43:36 +01:00
Daniel Hofstetter
d2a75457f6 Fix errors reported by new version of cspell 2024-02-05 09:12:52 +01:00
Ulrich Hornung
93d922f075
squash commit 2024-02-03 17:08:39 +01:00
kralo
9ae5cc741b util: disable mirror selection by Variable 2024-01-28 08:56:08 +01:00
Sylvestre Ledru
dd5c6c2d00 0.0.23 => 0.0.24 2024-01-20 20:12:19 +01:00
Sylvestre Ledru
724305e64f Remove the tests/cp/link-heap.sh workaround
No longer needed since github.com/uutils/coreutils/pull/5789 landed
2024-01-06 23:33:32 +01:00
Sylvestre Ledru
aabf5fa577 cp: manages target with trailing '/' 2024-01-05 12:56:27 +01:00
Sylvestre Ledru
932ea96cb6 Update a GNU test error check - tests/cp/fail-perm.sh 2024-01-05 00:03:12 +01:00
Sylvestre Ledru
217aa3bd9d gnu compare: try to use a local copy if the download failed 2024-01-03 20:42:25 +01:00
Daniel Hofstetter
442da9ac54
Merge pull request #5774 from lcheylus/bsd-scripts
Fix util shell scripts to be compatible with BSD
2024-01-03 10:45:19 +01:00
Laurent Cheylus
13665da85e
run-gnu-test.sh: modify script to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to use OSTYPE
  - Define variables for GNU version of make, nproc, readlink and use them on BSD.

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus
aef204461c
util: modify scripts for code coverage to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to use OSTYPE
  - Use readlink from GNU coreutils on BSD OS in util/build-code_coverage.sh and
    util/show-code_coverage.sh scripts

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus
d450d5a463
show-utils.sh: modify script to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to define OSTYPE
  - Use GNU realpath on BSD OS (FreeBSD and OpenBSD)

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus
7aca1f932a
build-gnu.sh: modify script to be compatible with BSD OS
- Define variables for GNU version of make, nproc, readlink and sed and use them on BSD.
  - In specific cases (option -z not available on BSD and with command /c), use GNU sed instead of
    BSD sed.
  - For xargs, --no-run-if-empty option is a GNU extension. Replace it by -r to be compatible with
    FreeBSD and OpenBSD xargs command.

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus
6d3345cfec
util: use env to call bash in shell scripts
- For shell scripts using bash, use #!/usr/bin/env bash instead of #!/bin/bash.
    On some OS, bash is not the default shell and is not installed as /bin/bash

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Sylvestre Ledru
4a28b1674a remaining-gnu-error.py: shows when a test requires root 2024-01-02 20:33:21 +01:00
Daniel Hofstetter
2a81c91f52
Merge pull request #5771 from sylvestre/tail-error
tail: transform FAIL into ERROR for tests/tail/inotify-rotate-resources.sh
2024-01-02 07:20:25 +01:00
Sylvestre Ledru
203600bb9c tail: transform FAIL into ERROR for tests/tail/inotify-rotate-resources.sh 2024-01-02 00:42:52 +01:00
Sylvestre Ledru
d640e690f4 Workaround https://github.com/uutils/coreutils/issues/5766
to transform an ERROR into FAIL
2024-01-02 00:13:20 +01:00
Sylvestre Ledru
3560ec6811 gnu-built: disable some options in the GNU build 2023-12-31 13:08:23 +01:00
Sylvestre Ledru
f23902ff7a gnu-built: remove the useless sed
It will avoid a rebuilding when doing:
bash util/build-gnu.sh && bash util/run-gnu-test.sh   ../gnu/tests/rm/empty-inacc.sh
2023-12-31 13:08:14 +01:00
Sylvestre Ledru
55de78037d ls/gnu: ignore the libcap check 2023-12-28 23:21:44 +01:00
Sylvestre Ledru
30eb77ac79
du: implement files0-from (#5721)
* du: implement files0-from

Should make tests/du/files0-from-dir pass

* du: prepare tests/du/files0-from.pl

* fix the build on Windows

* add testfile to the ignore list

* remove useless comment

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* mkdir is enough

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* address review comments

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-26 14:40:31 +01:00