Dorian Peron
86aff6186a
test-utils: Add fails_with_code() function
2025-02-27 14:24:54 +01:00
Daniel Hofstetter
0356dcc022
Merge pull request #7367 from uutils/renovate/dawidd6-action-download-artifact-9.x
...
chore(deps): update dawidd6/action-download-artifact action to v9
2025-02-27 11:43:33 +01:00
renovate[bot]
47a43323dc
chore(deps): update dawidd6/action-download-artifact action to v9
2025-02-27 10:16:06 +00:00
Nicolas Boichat
f23e6f1cab
uucore: format: Fix printing of negative floating hex
...
Negative numbers were not printed correctly with `%a`:
- A leading `-` is expected.
- The exponent mask was too wide (15 bits instead of 11)
2025-02-26 21:42:21 +01:00
Nicolas Boichat
576655b926
uucore: format: Fix printing of floating hex exponents
...
Floating hex format is supposed to be `[-]0xh.hhhp±d`. Note that
the exponent is a decimal value, not an hex number: fix that.
Also, add basic tests for this format, while we're at it.
Test: `cargo test --package uucore --all-features float`
Fixes #7362 .
2025-02-26 21:42:13 +01:00
Karl McDowall
ad20cb35a0
Head: ensure stdin input stream is correct on exit
...
Fix issue #7028
Head tool now ensures that stdin is set to the last character
that was output by the tool. This ensures that if any subsequent
tools are run from the same input stream they will start at the
correct point in the stream.
2025-02-26 11:41:29 -07:00
Daniel Hofstetter
bd9564cfea
Merge pull request #7360 from uutils/renovate/chrono-0.x-lockfile
...
chore(deps): update rust crate chrono to v0.4.40
2025-02-26 13:46:34 +01:00
renovate[bot]
269fcb4943
chore(deps): update rust crate chrono to v0.4.40
2025-02-26 12:08:46 +00:00
Daniel Hofstetter
15eaeaec14
Merge pull request #7347 from BigPapa314/cp--fix-don't-show-msg-with-cp--i--v---update=older-a-b-if-a-is-older-than-b
...
cp: disabled verbose output if file has been skipped
2025-02-26 08:48:35 +01:00
Daniel Hofstetter
8ea34446f2
Merge pull request #7358 from uutils/renovate/zip-2.x-lockfile
...
chore(deps): update rust crate zip to v2.2.3
2025-02-26 07:28:39 +01:00
renovate[bot]
86f1f0f8a4
chore(deps): update rust crate zip to v2.2.3
2025-02-26 06:01:59 +00:00
Tuomas Tynkkynen
88b93a6865
uucore: Extend proc_info spell checker list
2025-02-25 19:29:45 +02:00
Tuomas Tynkkynen
339a6d4c46
uucore: Sync uid/gid methods from procps
2025-02-25 11:51:20 +02:00
Tuomas Tynkkynen
16c174d826
uucore: Sync thread_ids() method from procps
2025-02-25 11:51:20 +02:00
Dorian Péron
9c0ff86caa
Merge pull request #7352 from RenjiSann/expr-no-clap
...
expr: Get rid of clap for performance reasons
2025-02-25 02:19:32 +01:00
Dorian Peron
44077e37a8
expr: Do not parse arguments using clap
2025-02-25 01:49:40 +01:00
Thomas Kilian
63fe4fb327
cp: disabled verbose output if file has been skipped
2025-02-24 22:24:27 +01:00
Sylvestre Ledru
81048228cf
Merge pull request #7322 from alexsnaps/issue-7221
...
numfmt: fix Unit::SI uses lowercase `k` suffix for kilos
2025-02-24 19:28:00 +01:00
Sylvestre Ledru
6b22879c95
Merge pull request #7353 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.31
2025-02-24 19:26:39 +01:00
Sylvestre Ledru
9ba8ddc840
Merge pull request #7354 from uutils/renovate/clap_complete-4.x-lockfile
...
chore(deps): update rust crate clap_complete to v4.5.46
2025-02-24 19:26:34 +01:00
renovate[bot]
7f1b81a0ab
chore(deps): update rust crate clap_complete to v4.5.46
2025-02-24 16:34:59 +00:00
renovate[bot]
7c34a46784
chore(deps): update rust crate clap to v4.5.31
2025-02-24 16:34:53 +00:00
Sylvestre Ledru
a3284e6a25
Merge pull request #7350 from cakebaker/tests_make_wait_with_output_private
...
tests: make `wait_with_output` private
2025-02-24 10:48:31 +01:00
Daniel Hofstetter
cf08040348
tests: make wait_with_output private
...
and un-deprecate it
2025-02-24 09:26:05 +01:00
Sylvestre Ledru
fae7bb0a57
Merge pull request #7332 from RenjiSann/expr-other-approach
...
expr: Evaluate parenthesis content before checking for closing parenthesis
2025-02-24 08:19:05 +01:00
Dorian Péron
604cc404ff
Merge pull request #7349 from uutils/sylvestre-patch-4
...
GNU test: don't generate an error if a new test passes
2025-02-24 02:29:56 +01:00
Sylvestre Ledru
0cf9f9d55b
GNU test: don't generate an error if a new test passes
2025-02-23 18:35:10 +01:00
Sylvestre Ledru
8bd9744183
Merge pull request #7348 from cakebaker/yes_remove_use_of_deprecated_fn_in_test
...
yes: fix use of deprecated function in test
2025-02-23 18:33:25 +01:00
Daniel Hofstetter
e2412e003a
yes: fix use of deprecated function in test
...
use wait() instead of wait_with_output()
2025-02-23 16:53:46 +01:00
Dorian Peron
2fc762b9d2
expr: Evaluate parenthesis content before checking for closing parenthesis
2025-02-23 16:22:06 +01:00
Dorian Peron
4513b58e59
test(expr): Add test for eager evaluation
2025-02-23 16:22:06 +01:00
Dorian Peron
2670885b4f
expr: Use thiserror to be consistent with error definition in other uutils
2025-02-23 16:22:06 +01:00
Sylvestre Ledru
9f643838b8
Merge pull request #7341 from cakebaker/tee_fix_usage_of_deprecated_function_in_tests
...
tee: fix usage of deprecated function in tests
2025-02-23 16:21:34 +01:00
Sylvestre Ledru
b3f7aca846
Merge pull request #7345 from uutils/renovate/rand_core-0.x-lockfile
...
chore(deps): update rust crate rand_core to v0.9.2
2025-02-23 10:30:24 +01:00
Sylvestre Ledru
147fac7245
Merge pull request #7346 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.170
2025-02-23 10:30:08 +01:00
Sylvestre Ledru
c2cf772549
Merge pull request #7331 from blmaier/conda-forge-skip-manpages-comps
...
GNUmakefile: support skipping manpages and completions
2025-02-23 10:29:49 +01:00
renovate[bot]
65af29c272
fix(deps): update rust crate libc to v0.2.170
2025-02-23 06:13:27 +00:00
Brandon Maier
f051da7ff6
.github: add check for make install
without completions or manpages
2025-02-22 13:53:42 -06:00
Brandon Maier
9082f9ba57
GNUmakefile: support skipping manpages and completions
...
When packaging uutils for Conda-Forge and a cross-compiled architecture,
the install of completion scripts and manpages fails with the following
error.
> .../coreutils manpage arch > .../man/arch.1
> /bin/sh: .../coreutils: Bad CPU type in executable
> make: *** [GNUmakefile:349: manpages] Error 126
When cross-compiling, the `coreutils` tool will be for a different
architecture then the build platform. So we won't be able to extract the
manpages and completions.
Provide build arguments that let us skip the build and install of
manpages and completions.
2025-02-22 13:53:42 -06:00
renovate[bot]
9f706d2b33
chore(deps): update rust crate rand_core to v0.9.2
2025-02-22 17:26:42 +00:00
Daniel Hofstetter
b186f1f00f
Merge pull request #7339 from jfinkels/clippy-fixes-3
...
Style fixes from cargo +nightly clippy
2025-02-22 16:37:06 +01:00
Daniel Hofstetter
277a84d521
tests/common/utils.rs: remove deprecated function
2025-02-22 16:21:08 +01:00
Daniel Hofstetter
be1b2b7632
tee: fix use of deprecated function in tests
...
use pipe_in_and_wait() instead of pipe_in_and_wait_with_output()
2025-02-22 16:21:08 +01:00
Jeffrey Finkelstein
faf3412019
Style fixes from cargo +nightly clippy
2025-02-22 10:11:01 -05:00
Sylvestre Ledru
693d2c4258
Merge pull request #7330 from cakebaker/fuzz_add_new_test_operators
...
fuzz: use new `<`/`>` operators in `fuzz_test.rs`
2025-02-21 22:47:05 +01:00
Daniel Hofstetter
41f1c6b2da
fuzz: use new "<"/">" operators in fuzz_test
2025-02-21 14:58:54 +01:00
Daniel Hofstetter
34fb0dd197
fuzz: bump parse_datetime from 0.7 to 0.8
2025-02-21 14:58:11 +01:00
jfinkels
4acc59d075
test: add < and > operators for string comparison ( #7315 )
...
* test: add < and > operators for string comparison
Fixes #7254 .
* Add more tests for string inequality
* Use match in place of if/elseif block
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Change test name to specify lt/gt operator
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-02-21 14:41:15 +01:00
Sylvestre Ledru
d065e172f7
Merge pull request #7329 from cakebaker/clippy_fix_warnings_rust_1_85
...
clippy: fix/disable warnings introduced with Rust `1.85`
2025-02-21 11:22:16 +01:00
Daniel Hofstetter
9074f3fe8f
clippy: disable warnings from unnecessary_map_or
...
because fix requires an MSRV of 1.82
2025-02-21 07:54:57 +01:00