sreehari prasad
2e16cbbd7a
cp: link-deref gnu test fix ( #6378 )
...
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
2024-05-19 10:14:29 +02:00
Ben Wiederhake
b718f954e8
Merge pull request #6390 from sylvestre/cksum-check
...
cksum: implement check (Closes : #5705 )
2024-05-18 23:46:58 +02:00
Sylvestre Ledru
3156ad8298
Merge pull request #6412 from sylvestre/hashsum-fix
...
hashsum: improve the blake2 --tag export
2024-05-18 16:34:43 +02:00
Sylvestre Ledru
a9a11f486e
hashsum: rename the blake2b algo with --tag + manage the different length
2024-05-18 16:16:26 +02:00
Sylvestre Ledru
514d810371
cksum: improve the blake2b detection algo corner case
2024-05-17 22:09:41 +02:00
Sylvestre Ledru
db58d2b6b5
cksum: when length/bits can't be divided by 8, generate an error
2024-05-17 22:08:53 +02:00
Sylvestre Ledru
1b78102a6b
cksum: fails in case of unknown algo
2024-05-17 20:21:14 +02:00
Sylvestre Ledru
9c52ca8d55
cksum: also handle the case when the line start with ' \'
2024-05-15 11:46:58 +02:00
Dorian Péron
105024e708
ls: Fix quoting alignment
2024-05-15 09:59:38 +02:00
Dorian Péron
147c0b6962
tests(ls): Test space alignment when quoting is involved on grid output
2024-05-15 09:59:38 +02:00
Dorian Péron
0209c90b4e
tests(ls): Test default quoting style on TTY output
2024-05-15 09:59:38 +02:00
Sylvestre Ledru
58c2b5d421
cksum: add failing tests - to be fixed
2024-05-14 23:27:50 +02:00
Sylvestre Ledru
115b203b22
cksum: also show the error on stdout
2024-05-14 23:27:50 +02:00
Sylvestre Ledru
07d579c40a
cksum: handle the empty lines (and just spaces)
2024-05-14 23:27:50 +02:00
Sylvestre Ledru
bbd80e4061
cksum: various improvements/fixes
2024-05-14 23:27:47 +02:00
Sylvestre Ledru
843275a136
cksum/blake2b: improve the error management
2024-05-14 23:21:56 +02:00
Sylvestre Ledru
8ddb2131df
cksum/blake2b, when length=512, don't add it in the line
2024-05-14 23:21:56 +02:00
Sylvestre Ledru
1aec8b407d
chksum: add support of --check --algorithm=xxx
2024-05-14 23:21:56 +02:00
Sylvestre Ledru
81500ae3b8
cksum: implement check & strict
2024-05-12 21:20:58 +02:00
Daniel Hofstetter
320bdcf29e
tail: remove useless use of vec! in test
2024-05-12 15:32:24 +02:00
Daniel Hofstetter
692cdfac34
cp/tail: use #[ignore] to disable tests
...
instead of a cfg attribute
2024-05-12 15:15:44 +02:00
Anirban Halder
1a5639b7d2
Fix ls: panicking on dangling symlink with --color=auto -l ( #6346 )
...
* Fixed unwrap being called on dereferenced dangling symlink
* Added test
* Switched to regex matching in test
* Remove unnecessary mkdir call
* Modified documentation of the test and added assertion of the colors
* Fixed a typo
2024-05-11 21:07:44 +02:00
Jadi
9303f8e5b1
Disabling compare_xattrs cp and mv related tests on OpenBSD
...
The test_cp and test_mv have xattr related tests. They should
be disabled on OpenBSD after commit 19d42c0339
disabled the
compare_xattrs function on OpenBSD.
Fixes #6348
2024-05-09 18:24:39 +02:00
Daniel Hofstetter
0ad7389b61
tail: remove #[cfg(not(windows))] from const
2024-05-09 15:28:34 +02:00
Daniel Hofstetter
aef7933d96
tail: use #[ignore] to disable tests
...
instead of a cfg attribute
2024-05-09 15:07:10 +02:00
Anirban Halder
97f8361737
Switched to using at.symlink_file instead of ln in tests
2024-05-08 23:50:33 +02:00
Anirban Halder
88d9d46abc
Added test for dangling symlink in target directory
2024-05-08 23:50:33 +02:00
Anirban Halder
1f81912b3c
Added assertion of stderr strings for macos and windows and fixed lints
2024-05-08 23:50:33 +02:00
Anirban Halder
f7e55b1322
Added overwrite detection for existing symlinks
2024-05-08 23:50:33 +02:00
Sylvestre Ledru
eb6f1df3bc
cksum: add an ignored test for issue 6375
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
ee2772925a
cksum: --tag & --untagged - the order of usage matters. manage it
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
9e080a3684
cksum: handle a corner case
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
234f2f9508
cksum: handle an error like GNU
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
10d8fd6f98
cksum: add binary and prepare the rest
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
dc5342d115
hashsum: allow multiple usage of -l and take the last one
...
tested by gnu/tests/cksum/b2sum.sh
2024-05-07 20:24:25 +02:00
Ben Wiederhake
ea18cfd3d8
fmt: fix error priority, make goal-errors more helpful
2024-05-06 19:36:39 +02:00
ahmadabd
a3d05e5945
fmt: value of minlength should not be negative
...
closes #6354
2024-05-05 21:08:38 +02:00
Ben Wiederhake
a13949b4ba
fmt: add basic tests for split-only, prefix, and skip-prefix args
2024-05-05 17:03:28 +02:00
Ben Wiederhake
e76f92c212
fmt: accept repeated arguments
2024-05-05 16:13:46 +02:00
Jalil David Salamé Messina
ff1a03c284
tr: don't truncate when not translating
...
An additional issue was found while reviewing #6340 , check [this thread][1]. A summary is:
- `tr` ignores the `-t`/`--truncate-set1` flag when not translating
- Not translating is defined as `-d` was passed, or one set was passed.
[1]: https://github.com/uutils/coreutils/pull/6340#discussion_r1590007053
2024-05-04 19:55:49 +02:00
Jalil David Salamé Messina
3c47f27698
tr: calculate complement set early
...
Fixes #6163 and adds a test to verify that a regression is not caused.
Instead of inverting the conditions to check (e.g. delete characters **not** present in set1) invert
set1 when passed the complement flag (`-c`, `-C`, `--complement`). This is done by calculating set1
then "inverting" it by subtracting from the "full" (universe) set (0..=u8::MAX).
This fixes issue 6163 because it was caused by a combination of the `-c` and `-t` flag. `-c` is the
abovementioned complement flag and `-t`/`--truncate-set1` truncates set1 to the length of set2. What
happened in issue 6163 is that `set1={b'Y'}` and `set2={b'Z'}`, when truncated set1 stays the same
and we proceed. The problem is GNU utils does not consider set1 to be `{b'Y'}`, but the complement
of `{b'Y'}`, that is `U \ {b'Y'}={0, 1, ..., b'X', b'Z', ...}`, thus it is truncated to `{0}`.
We can verify this by doing: `printf '\0' | tr -c -t Y Z`, which prints `Z` to stdout as expected.
Additionally, by calculating the complement of set1 we no longer need to consider the complement
flag when doing the translate operation, this allows us to delete a lot of code.
2024-05-04 19:55:49 +02:00
Anirban Halder
c5a530f4a1
Changed `/sys/kernel/address_bits
to
/sys/kernel/profiling
` in test_cp ( #6294 )
...
* Changed sys/kernel/address_bits to sys/kernel/profiling
* Added comments and fixed formatting
---------
Co-authored-by: Anirban <anirban@pop-os.localdomain>
2024-05-02 18:25:22 +02:00
Sylvestre Ledru
b28b79da77
Merge pull request #6125 from cre4ture/feature/config_terminal_simulation
...
config terminal simulation for specific stdios only
2024-05-01 21:40:28 +02:00
Ben Wiederhake
909c47886a
tr+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
48a483c319
sort+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
e4b6687196
realpath+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
289346a4ba
printf+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
bebddc6ad4
od+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
a53ec17b67
numfmt+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
f1a683d45f
mktemp+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00