Commit graph

3496 commits

Author SHA1 Message Date
Daniel Hofstetter
c8b0c8b612 cp: remove some sleep() calls in tests 2024-11-26 10:35:13 +01:00
Dorian Péron
8c4f595f24 test(cksum): rework test for improperly formatted keeps processing 2024-11-26 01:47:10 +01:00
Dorian Péron
20dfe2dc10 test(cksum): remove duplicate testcase 2024-11-26 01:47:10 +01:00
Daniel Hofstetter
9f07bf8809 mv: remove "sleep" in tests 2024-11-21 16:32:17 +01:00
Daniel Hofstetter
881044aef0
Merge pull request #6861 from sylvestre/dup-source
mv: fix the output of an error message
2024-11-21 16:26:33 +01:00
Daniel Hofstetter
e37d2f2a2b
Merge pull request #6878 from sylvestre/du
du: fix the display with --inodes
2024-11-21 10:42:48 +01:00
Sylvestre Ledru
1b2778b819 du: fix the size display with --inodes 2024-11-20 16:13:54 -05:00
Sylvestre Ledru
76d14ed484 du: fix the count with --inodes 2024-11-20 16:13:52 -05:00
steinwand6
c986fb7d2e
seq: add overflow checks when parsing exponents (#6858)
* seq: remove ignore flag from test_invalid_float_point_fail_properly(#6235)

* seq: prevent overflow in parse_exponent_no_decimal

* seq: add tests for invalid floating point arguments

* seq: add overflow checks when parsing decimal with exponent

* seq: add overflow checks
2024-11-20 16:11:04 +01:00
Sylvestre Ledru
7ffe3d49ef mv: fix the output of an error message
+ adjust a GNU test

Should make tests/mv/dup-source.sh pass
2024-11-20 08:03:40 -05:00
Daniel Hofstetter
19a19f004f
Merge pull request #6854 from sylvestre/fmt
fmt: generate an error if the input is a directory
2024-11-18 16:18:41 +01:00
Daniel Hofstetter
3281d3ef55 tee: fix warning from ref_as_ptr lint in test 2024-11-18 09:45:44 +01:00
Dorian Péron
0bc22e8d18 test(cksum): add multiple tests
test(cksum): add test for blake length gessing
test(cksum): add test for hexa/base64 confusion
test(cksum): add test for error handling on incorrectly formatted checksum
test(cksum): add test for trailing spaces making a line improperly formatted
test(cksum): Re-implement GNU test 'cksum-base64' in the testsuite
2024-11-16 22:44:08 +01:00
Sylvestre Ledru
ab77eaea45 fmt: generate an error if the input is a directory
tested by tests/misc/read-errors
2024-11-16 19:49:44 +01:00
Daniel Hofstetter
27fc9f614f
Merge pull request #6837 from matrixhead/dup-source
mv: gnu test `dup-src` compatibilty
2024-11-01 09:34:43 +01:00
mhead
2c528cfcb5 mv: fix error message when one of the multiple src doesn't exist 2024-11-01 13:35:47 +05:30
Daniel Hofstetter
d1f2534811
Merge pull request #6825 from matrixhead/dup-source
cp: normalize path when checking for duplicate source
2024-10-31 11:26:35 +01:00
Daniel Hofstetter
e947c713c8
cp: separate tests with empty line 2024-10-31 10:55:22 +01:00
mhead
ff586b47d4 cp: Duplicate source error message specify the type of file. 2024-10-31 11:49:29 +05:30
Daringcuteseal
8cecebc050
tests/mkdir: check for multiple --parent arguments 2024-10-31 05:10:31 +07:00
Sylvestre Ledru
bf6de81a1f
Merge pull request #6806 from Ecordonnier/eco/signal-handler
uucore: disable default signal-handlers added by Rust
2024-10-30 08:36:01 +01:00
mhead
4d5bf4205f cp: skip duplicate source check when --backup is given 2024-10-27 14:18:20 +05:30
mhead
74cd797c8a cp: normalize path when checking for duplicate source 2024-10-26 12:09:38 +05:30
Etienne Cordonnier
8ab99d4bfe test(sleep): add test for signal handling 2024-10-25 16:47:40 +02:00
Andrew Liebenow
186d749e94 Replace commented-out code with TODO comments 2024-10-24 13:12:38 -05:00
Dorian Péron
6030ad9bc9 test(cksum): add tests for non-utf-8 handling in checksum files 2024-10-24 11:43:52 +02:00
Dorian Péron
1c41a12fb5 test(cksum): add test for trailing spaces making an error 2024-10-24 11:43:52 +02:00
Dorian Péron
e9cf31451e test(cksum): add tests for -z/--zero 2024-10-24 00:29:45 +02:00
Terts Diepraam
6850be2539
Merge pull request #6810 from cakebaker/echo_remove_double_negation
echo: remove double negation
2024-10-23 10:24:26 +02:00
Pistonight
ca6d0eda3d hashsum: Windows: check in binary mode by default and allow --binary/--text whcn checking 2024-10-22 11:55:49 -07:00
Daniel Hofstetter
c4160f2dd7
Merge pull request #6801 from Luv-Ray/cksum_error_handling
cksum: fix error handling
2024-10-22 16:35:36 +02:00
Daniel Hofstetter
b0fa702e90 echo: remove unnecessary no_stderr() call in test 2024-10-22 14:32:20 +02:00
Luv-Ray
d5cc3dd8ee cksum: fix error handling 2024-10-22 20:20:18 +08:00
Andrew Liebenow
66f11c4ce4
echo: handle multibyte escape sequences (#6803)
* echo: handle multibyte escape sequences

Bug was reported, with root cause analysis, by kkew3
Added tests were derived from test cases provided by kkew3
See https://github.com/uutils/coreutils/issues/6741

* Use concrete type

* Fix MSRV issue

* Fix non-UTF-8 argument handling

* Fix MSRV issue

* Fix Clippy violation

* Fix compiler warning

* Address PR comments

* Add MSRV TODO comments

* echo: use stdout_only_bytes instead of stdout_is_bytes

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-10-22 11:03:08 +02:00
Andrew Liebenow
80b63931a4 mkdir: emit error when path is empty 2024-10-20 10:45:46 -05:00
Sylvestre Ledru
5b881a0766
Merge pull request #6790 from sgvictorino/require-mkdir-rmdir-args
mkdir/rmdir: require arguments
2024-10-20 17:15:25 +02:00
Dorian Péron
b34730dda3 test(hashsum): add tests for comment in checksum files 2024-10-18 11:58:03 +02:00
Dorian Péron
90d49c9403 test(cksum): add tests for comment in checksum files 2024-10-18 11:57:59 +02:00
Solomon Victorino
fe234164f4 rmdir: require argument 2024-10-18 08:30:18 +02:00
Solomon Victorino
6ad07a4fb3 mkdir: require argument 2024-10-18 08:30:18 +02:00
Luv-Ray
85b0ef132b
cp: fix symlink-overwrite error-priority (#6586) 2024-10-16 08:55:43 +02:00
Sylvestre Ledru
6028953b7b num-prime => '0.4.4' 2024-10-15 22:46:44 +02:00
Dorian Péron
758b103c70 test(ls): Add test for #6554 2024-10-15 11:11:23 +02:00
Andrew Liebenow
e53dd5ffe1 tr: forbid non-numeric repeat counts 2024-10-12 03:44:46 -05:00
Andrew Liebenow
0bf5a68c54 tr: forbid backwards ranges 2024-10-12 01:40:05 -05:00
Andrew Liebenow
a696e609eb tr: correctly handle multibyte octal sequences 2024-10-12 00:53:54 -05:00
Andrew Liebenow
c41c601b45
paste: permit the delimiter list to be empty (#6714)
* paste: permit the delimiter list to be empty

Also: refactored the delimiter processing logic

* Extract duplicated code into function

* Address PR comments. Improve code structure.

* Fix additional paste bugs

* Fix additional paste bugs

* Simplify backslash delimiter validation

* Fix Clippy violations
2024-10-10 15:36:30 +02:00
Justin Tracey
a51a731704
join: add support for multibyte separators (#6736)
* join: add test for multibyte separators

* join: implement support for multibyte separators

* join: use a trait instead of an enum for separator

* join: test whitespace merging
2024-10-06 11:48:08 +02:00
GiM
d8eb4e2214
cat: fix #5186 by adding explicit flush. (#5256)
* fix #5186 by adding explicit flush.
* make test machine-independent

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-10-06 11:31:31 +02:00
Andrew Liebenow
32e1c54c78 Fix "coreutils manpage base64" bug 2024-10-05 08:17:10 -05:00