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
Sylvestre Ledru
8df064e1fa
Merge pull request #5772 from cakebaker/du_files0_from_zero_length_file_name
...
du: show error for nul names with `--files0-from`
2024-01-02 19:53:15 +01:00
Daniel Hofstetter
239e5426e6
du: show error for nul names with --files0-from
2024-01-02 16:06:41 +01:00
Daniel Hofstetter
9f257adf59
Merge pull request #5765 from sylvestre/handle-full
...
handle the error when stdout is full
2024-01-02 08:31:19 +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
Daniel Hofstetter
34c0861d96
Merge pull request #5770 from sylvestre/cp-leap-error
...
Workaround https://github.com/uutils/coreutils/issues/5766
2024-01-02 07:14:41 +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
2c73e978ba
Merge pull request #5769 from samueltardieu/is-ok-and
...
test: use clearer expression for CI testing
2024-01-01 22:45:37 +01:00
Samuel Tardieu
05d85618e3
test: use clearer expression for CI testing
...
`bool::is_ok_and()` is available in Rust 1.70.0 and above, which is compatible
with the current MSRV.
2024-01-01 21:04:13 +01:00
Sylvestre Ledru
97cb2b2de6
Merge pull request #5764 from cakebaker/mv_simplify_condition
...
mv: simplify condition
2024-01-01 17:45:34 +01:00
Sylvestre Ledru
f53f9b6496
handle the error when stdout is full
...
Avoid panic when using
seq 1 >/dev/full
Should move tests/csplit/csplit-io-err.sh from ERROR to SKIP
2024-01-01 17:00:10 +01:00
Daniel Hofstetter
01e12120c1
mv: simplify condition
2024-01-01 16:48:06 +01:00
Daniel Hofstetter
e2a90c4be9
Merge pull request #5763 from lcheylus/freebsd-docs
...
docs: fix URL for FreeBSD port
2024-01-01 16:40:09 +01:00
Laurent Cheylus
62b101a6c5
docs: fix URL for FreeBSD port
...
- FreeBSD port name is rust-coreutils, fix URL for repology.org
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-01 15:56:15 +01:00
Sylvestre Ledru
08f51558bf
fuzz: enable seq as the stalled issue is fixed
2024-01-01 13:27:01 +01:00
Sylvestre Ledru
cdd3492532
fuzz: use thread to bypass the limitation of output
...
Closes : #5724
many thanks to @samueltardieu
2024-01-01 13:26:56 +01:00
Sylvestre Ledru
cbf42189a2
Merge pull request #5757 from cakebaker/cp_show_same_file_error
...
cp: show error if source and destination are same file
2023-12-31 17:05:30 +01:00
Daniel Hofstetter
5673f32c63
cp: show error if source & dest are same file
2023-12-31 16:01:34 +01:00
Daniel Hofstetter
89fd26c9db
Merge pull request #5756 from sylvestre/gnu-rebuilt
...
GNU: Improve the built
2023-12-31 14:00:05 +01:00
Daniel Hofstetter
ed111320dd
Merge pull request #5755 from sylvestre/syntax
...
rm: improve the code a tiny bit
2023-12-31 13:35:25 +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
b07ea957d3
rm: improve the code a tiny bit
2023-12-31 12:03:42 +01:00
Daniel Hofstetter
5cbf6c2059
Merge pull request #5750 from sylvestre/disable-freebsd
...
cp: Disable a test failing on freebsd
2023-12-31 10:39:22 +01:00
Sylvestre Ledru
5fc01f718a
Merge pull request #5747 from Ato2207/fix_docs
...
Fix docs issues.
2023-12-30 19:28:54 +01:00
Sylvestre Ledru
193bcf86b7
cp: Disable a test failing on freebsd
2023-12-30 17:00:44 +01:00
Daniel Hofstetter
8fe1b2619c
Merge pull request #5749 from DitherWither/main
...
cksum: Add --length argument for the blake2b algorithm
2023-12-30 16:46:41 +01:00
Vardhan Patil
d990021572
cksum: remove redundant guard
2023-12-30 20:39:09 +05:30
Vardhan Patil
1fc6a760f3
tests/cksum: fix formatting
2023-12-30 20:31:52 +05:30
Vardhan Patil
e7cb4e9ff0
cksum: properly handle cases where --lenghth is 0 or >512
2023-12-30 20:28:03 +05:30
Vardhan Patil
e1863ac64e
tests/cksum: test when the --length argument is 0 or >512
2023-12-30 20:14:30 +05:30
Atomei Alexandru
5ade45f8e9
Merge branch 'main' into fix_docs
2023-12-30 15:43:54 +02:00
Vardhan Patil
aec0cfa6e3
cksum: remove commented code
2023-12-30 16:05:20 +05:30
Vardhan Patil
7caa0bcdea
cksum: fix formatting in cksum.rs
2023-12-30 16:02:10 +05:30
Vardhan Patil
09ef150085
tests/cksum: add tests for the length argument
2023-12-30 16:01:22 +05:30
Vardhan Patil
037073d852
cksum: make the output formatting match GNU
2023-12-30 15:59:29 +05:30
Sylvestre Ledru
138b11efbd
remove extra spaces
2023-12-30 09:53:32 +01:00
Vardhan Patil
231987b109
cksum: create initial implementation of the --length option
2023-12-30 12:48:19 +05:30
Matei Mantu
21d09dd404
ls: unquoted names should be indented with a space if there is a quoted name ( #5740 )
...
* ls: change indentation when file names include quotes to match GNU's
* display_grid: Changed order of parameters because it made more sense
* ls -l: Add padding for unquoted filenames
* Fix checking for quoted filenames
* Simplify if
2023-12-29 15:19:26 +01:00
Sylvestre Ledru
448e4c2224
Merge pull request #5745 from cakebaker/cp_adapt_warning
...
cp: adapt warning if source is used more than once
2023-12-29 15:09:24 +01:00
Alexandru-Constantin Atomei
d15981650a
Fixed one typo
2023-12-29 15:08:50 +01:00
Alexandru-Constantin Atomei
1e5244765d
Made one more modification to test usage string.
2023-12-29 15:08:50 +01:00
Alexandru-Constantin Atomei
e61318413e
Added documentation for the vdir command.
2023-12-29 15:08:50 +01:00
Alexandru-Constantin Atomei
ce28ae5c02
Fixed more and test docs
2023-12-29 15:08:50 +01:00