Commit graph

12325 commits

Author SHA1 Message Date
Daniel Hofstetter
a1c14fb550 Bump chrono from 0.4.34 to 0.4.35 2024-03-06 17:48:46 +01:00
Sylvestre Ledru
b3fd711c99
Merge pull request #6045 from cakebaker/bump_mio
Bump mio from 0.8.10 to 0.8.11
2024-03-05 07:47:16 +01:00
Daniel Hofstetter
837bc9493a Bump mio from 0.8.10 to 0.8.11 2024-03-05 07:10:59 +01:00
Daniel Hofstetter
4d66af2f53
Merge pull request #6034 from BenWiederhake/dev-cat-flags-everything
cat: Handle all flags correctly
2024-03-04 10:57:55 +01:00
Daniel Hofstetter
679b9e2c0a
cat: prefix two test fns with "test_" 2024-03-04 09:41:09 +01:00
Terts Diepraam
80bc8a7101
Merge pull request #6044 from cakebaker/fix_tests_common_utils
tests/common/util.rs: add `cfg(feature = "env")`
2024-03-03 23:23:00 +01:00
Daniel Hofstetter
d651063de3 tests/common/util.rs: add cfg(feature = "env") 2024-03-03 15:02:19 +01:00
Daniel Hofstetter
a8ad6275ae
Merge pull request #6038 from uutils/renovate/walkdir-2.x
chore(deps): update rust crate walkdir to 2.5
2024-03-02 07:12:29 +01:00
Ben Wiederhake
cd70d7dec1 cat: ignore -u flag, just like GNU does 2024-03-01 23:56:30 +01:00
Ben Wiederhake
472b56f0ff cat: fix -b and -n anti-symmetry 2024-03-01 23:56:30 +01:00
Ben Wiederhake
100a48fda9 cat: permit repeating command-line flags 2024-03-01 23:56:30 +01:00
renovate[bot]
0a84ec2054
chore(deps): update rust crate walkdir to 2.5 2024-03-01 18:54:09 +00:00
Sylvestre Ledru
118a65a5e0
Merge pull request #5938 from cakebaker/ci_codecov_token
ci: use codecov token in CICD/GnuTests workflows
2024-03-01 18:13:53 +01:00
Sylvestre Ledru
9003e3fbe4
Merge pull request #5869 from cre4ture/feature/simulate_terminal_utility
test utilities: easy way to simulate terminal context
2024-03-01 18:13:27 +01:00
Daniel Hofstetter
09048a34b5
Merge pull request #6020 from BenWiederhake/dev-cp-flaky-arg_interactive_update
cp: fix flaky test test_cp_arg_interactive_update, document adjacent bug
2024-03-01 14:24:48 +01:00
Ben Wiederhake
ba1c6b0044 cp: fix flaky test test_cp_arg_interactive_update, document adjacent bug 2024-03-01 11:41:22 +01:00
Daniel Hofstetter
41f809de98
Merge pull request #6032 from RenjiSann/feature/printf-0c-error
printf: '%0c' and '%0s' should fail
2024-03-01 09:25:33 +01:00
Dorian Péron
7094ff17cf printf: Raise error on '%0c' and '%0s' formats 2024-03-01 00:15:58 +01:00
Dorian Péron
58ee0ce427 tests/printf: Verify the correct error behavior of printf when provided with '%0c' or '%0s' 2024-03-01 00:02:31 +01:00
Daniel Hofstetter
75b2bfb111
Merge pull request #6028 from RenjiSann/feature/printf-byte
printf: Make printf operate on bytes instead of strings
2024-02-29 16:17:16 +01:00
Daniel Hofstetter
5d359783a0
uucore/format: add padlen to spell-checker:ignore 2024-02-29 15:27:11 +01:00
Dorian Péron
42cde767d2 printf: Change get_char and write_padded to handle bytes instead of chars 2024-02-29 00:59:08 +01:00
Dorian Péron
5d74a6e002 tests/printf: Fix char_as_byte test, add char and string padding tests 2024-02-29 00:43:47 +01:00
Daniel Hofstetter
18c9da349c
Merge pull request #6027 from rex4539/clippy
cargo: fix feature = "cargo-clippy" deprecation
2024-02-28 14:39:51 +01:00
Dimitris Apostolou
8fcce6e2a5
cargo: fix feature = "cargo-clippy" deprecation 2024-02-28 14:51:23 +02:00
Sylvestre Ledru
372cd52e1b
Merge pull request #5993 from cre4ture/fix/workaround_for_textfile_busy_error
Android CI: workaround: run builds with retry
2024-02-28 09:41:46 +01:00
Sylvestre Ledru
769c5ca7a5
Merge pull request #6000 from BenWiederhake/dev-pipein-fails-flake
tests: Harden two tests, prevent 4 flaky tests (cat, numfmt, sort, split, tee)
2024-02-28 09:41:00 +01:00
Daniel Hofstetter
bd6fc2baba
Merge pull request #6026 from uutils/renovate/rayon-1.x
chore(deps): update rust crate rayon to 1.9
2024-02-28 07:09:06 +01:00
renovate[bot]
716581ef77
chore(deps): update rust crate rayon to 1.9 2024-02-28 00:29:29 +00:00
Daniel Hofstetter
aa0d15d1ac
Merge pull request #6011 from BenWiederhake/dev-shuf-repeat-zero-items
shuf: Refuse repeating zero lines
2024-02-27 15:28:06 +01:00
Daniel Hofstetter
ae7d03cb15
Merge pull request #6007 from BenWiederhake/dev-basexx-multi-arg
base32/base64/basenc: implement and test proper flag parsing
2024-02-27 15:03:47 +01:00
Sylvestre Ledru
56e26f72b5
Merge pull request #6022 from cakebaker/uniq_use_concat
uniq: use `concat!` in tests for better readability
2024-02-27 13:09:21 +01:00
Daniel Hofstetter
8b2a2921c5
Merge pull request #6018 from BenWiederhake/dev-basename-multi-arg
basename: Fix handling of repeated flags/arguments
2024-02-27 10:03:14 +01:00
Daniel Hofstetter
6ac29cb577
Merge pull request #6023 from uutils/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.10.1
2024-02-27 06:56:03 +01:00
renovate[bot]
06ad75ea30
chore(deps): update rust crate tempfile to 3.10.1 2024-02-27 01:22:08 +00:00
Daniel Hofstetter
c85970485a uniq: use concat! in tests for better readability 2024-02-26 16:37:01 +01:00
Daniel Hofstetter
d8e6f36fcb
Merge pull request #6017 from BenWiederhake/dev-uniq-flake-stdin-write-gnutest
uniq: Fix flaky test gnu_tests
2024-02-26 16:18:26 +01:00
Matei Mantu
095eced4be
chmod: Fix chmod -c --reference reporting when no change is made (#6016)
* Make fperm hold 6 digit octal permission. Set it to 4 digits when displaying

* Add test

* Make every permission 4 octal digits

* Change test name to be more suggestive

* chmod: merge two args in test

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-02-26 11:01:50 +01:00
Daniel Hofstetter
a853a5b3ef
Merge pull request #6021 from uutils/renovate/half-2.x
chore(deps): update rust crate half to 2.4
2024-02-26 09:11:19 +01:00
renovate[bot]
c2e7eed27f
chore(deps): update rust crate half to 2.4 2024-02-26 04:34:43 +00:00
Ulrich Hornung
d8b3b41850
added configurable terminal size 2024-02-25 21:47:07 +01:00
Ben Wiederhake
f905d9ce41 basename: implement and test repeated flags and arguments
Note in particular that `args_override_self` would *NOT* work here,
since it would in all cases cause `options::NAME` to override itself,
or interfere with `trailing_var_arg`.
2024-02-25 19:45:32 +01:00
Ben Wiederhake
9441806a23 basename: test flag implications, document -z correctly 2024-02-25 19:14:17 +01:00
Ulrich Hornung
263a16317b workaround: run builds with retry (a) 2024-02-25 19:09:26 +01:00
Ulrich Hornung
a4d5defeef
simulate terminal utility (squash) 2024-02-25 18:15:15 +01:00
Ben Wiederhake
e91d0bd14f uniq: fix flaky test gnu_tests
The testcase tries to write to the stdin pipe while the process under
test is simultaneously exiting with an error code. Naturally, this is a
race, and we should ignore any stdin write errors. However, adding this
feature to the list makes it even more unreadable, and adds no real
value, so let's skip the input data entirely.
2024-02-25 17:59:09 +01:00
Ben Wiederhake
6834b593ee shuf: refuse repeating zero lines
This was a GNU behavior bug:

```console
$ LC_ALL=C shuf -er
shuf: no lines to repeat
[$? = 1]
$ cargo run shuf -er  # old, bad (unexpected success)
$ cargo run shuf -er  # new
shuf: no lines to repeat
[$? = 1]
```
2024-02-25 16:49:03 +01:00
Terts Diepraam
d7a09c042a
Merge pull request #6010 from BenWiederhake/dev-pr-fix-flaky-diff-timestamp
pr: Check the correct timestamp in test_with_pr_core_utils_tests
2024-02-25 11:46:39 +01:00
Sylvestre Ledru
174864566e
Merge pull request #6006 from BenWiederhake/dev-tr-multi-arg
tr: Correctly handle multiple appearances of flag-args
2024-02-25 09:51:40 +01:00
Sylvestre Ledru
8301a8e5be
Merge pull request #5980 from BenWiederhake/dev-shuf-number-speed
shuf: Fix OOM crash for huge number ranges
2024-02-25 09:50:49 +01:00