Sylvestre Ledru
0b397c469f
Merge pull request #7401 from RenjiSann/coverage
...
Fix coverage files generation
2025-04-07 11:10:12 +02:00
Dorian Peron
c539f01cc9
coverage: update DEVELOPMENT.md
2025-04-07 10:22:48 +02:00
Dorian Peron
a026a861e0
Remove old coverage-related scripts
2025-04-07 10:19:00 +02:00
Dorian Peron
5250b893a7
test(env): fix test_gnu_e20 for coverage run
2025-04-07 10:19:00 +02:00
Dorian Peron
f552a6cb8a
test-utils: make the test harness forward LLVM_PROFILE_FILE to coreutil call
2025-04-07 10:19:00 +02:00
Dorian Peron
f5d3a2d3ba
CI: add CICD job for code coverage
2025-04-07 10:19:00 +02:00
Dorian Peron
73faa50ac3
create a script for automating code coverage
2025-04-07 10:19:00 +02:00
eduardorittner
36ef5010e3
printf: make negative values wrap around with unsigned/hex format
...
To convert from negative to unsigned with overflow, we get the two's complement
representation of the absolute (unsigned) value.
2025-04-06 18:58:56 -03:00
Daniel Hofstetter
f1f3a5d9d2
Merge pull request #7677 from shskwmt/test-cp-acl-preserve
...
test/cp: Fix "No such file or directory" error in test_acl_preserve
2025-04-06 17:41:40 +02:00
shskwmt
58bde5453d
test/cp: Fix "No such file or directory" error in test_acl_preserve
...
Fix a bug in test_acl_preserve that was causing "setfacl: a: No such file or directory"
error messages when running with `cargo test --features=cp test_acl_preserve`.
Changes:
- Use plus_as_string on path1 to generate the correct absolute path
- Move the file path generation closer to where it's used for better code organization
2025-04-06 23:50:14 +09:00
Daniel Hofstetter
181885b2d1
Merge pull request #7667 from uutils/renovate/crossterm-0.x
...
chore(deps): update rust crate crossterm to 0.29.0
2025-04-06 10:28:41 +02:00
Daniel Hofstetter
c2919efd86
Merge pull request #7672 from uutils/renovate/vmactions-freebsd-vm-1.x
...
chore(deps): update vmactions/freebsd-vm action to v1.2.0
2025-04-06 10:25:03 +02:00
renovate[bot]
67a890e939
chore(deps): update vmactions/freebsd-vm action to v1.2.0
2025-04-05 22:18:42 +00:00
Lewis Boon
36e7b28426
df: migrate OptionsError to thiserror
...
Closed #7536
2025-04-05 23:11:10 +01:00
Sylvestre Ledru
15bb29c43e
Merge pull request #7643 from karlmcdowall/tail_forwards_through_file
...
tail: Performance improvements
2025-04-05 20:46:57 +02:00
Karl McDowall
b264457c41
tail: Performace improvements
...
Improve performance of `tail` utility. Tail now uses
performance-optimized memchr APIs when searching through a
file for delimiters.
2025-04-05 12:16:49 -06:00
renovate[bot]
d5258d2800
chore(deps): update rust crate crossterm to 0.29.0
2025-04-05 18:00:15 +00:00
Sylvestre Ledru
3971bb3b0c
Merge pull request #7620 from sargas/pass-printf-test
...
printf: Consistently handle negative widths/precision
2025-04-05 10:49:54 +02:00
Sylvestre Ledru
f6cadac519
Merge pull request #7645 from karlmcdowall/cat_line_number_formatting
...
cat: Performance improvement when printing line numbers
2025-04-05 10:43:00 +02:00
Sylvestre Ledru
4a5f428618
Merge pull request #7653 from drinkcat/ci-fuzz-cargolock
...
.github/workflows: Take care of both ./Cargo.lock and fuzz/Cargo.lock
2025-04-05 10:11:12 +02:00
Nicolas Boichat
51e90ae544
fuzz/Cargo.lock: Update
...
For some reason this lockfile has not been updated since the
edition 2024/1.85.0 update.
2025-04-05 09:34:17 +02:00
Nicolas Boichat
a888a021cb
.github/workflows: Take care of both ./Cargo.lock and fuzz/Cargo.lock
2025-04-05 09:34:17 +02:00
Joseph Jon Booker
64ce76bdf1
uucore/format: add docs and tests for resolve_astrick_ methods
2025-04-05 02:02:33 -05:00
Joseph Jon Booker
6061b67601
printf: add tests for different octal lengths
2025-04-05 02:02:33 -05:00
Joseph Jon Booker
95e5396c4c
printf: Consistently handle negative widths/precision
...
Also allows character constants with " instead of ', and for
interpolated values with %b to use \0XXX notation for octal bytes
2025-04-05 02:02:31 -05:00
Daniel Hofstetter
856e92c381
Merge pull request #7655 from uutils/renovate/zip-2.x-lockfile
...
chore(deps): update rust crate zip to v2.6.1
2025-04-05 07:41:01 +02:00
Daniel Hofstetter
3fb2919945
Merge pull request #7657 from uutils/renovate/smallvec-1.x-lockfile
...
chore(deps): update rust crate smallvec to v1.15.0
2025-04-05 07:17:50 +02:00
Karl McDowall
c56489e2b3
cat: Performance improvement when printing line numbers
...
Add a simple class to manually maintain a string representation
of the line number for the `cat` application.
Maintaing this string is much faster than converting a `usize`
line-number variable to a string each time it's needed.
Gives a significant performance improvement with -n and -b
flags.
2025-04-04 19:50:05 -06:00
renovate[bot]
7764883d94
chore(deps): update rust crate smallvec to v1.15.0
2025-04-05 01:48:02 +00:00
karlmcdowall
e6ff6d5c69
cat: Formatting performance improvement ( #7642 )
...
* cat: Formatting performance improvement
Use memchr library in `cat` to improve performance when detecting
newlines.
Significantly improves performance when running with -n, -s, -E, -b
flags.
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-04-04 23:47:28 +02:00
Sylvestre Ledru
88cf66174f
Merge pull request #7648 from drinkcat/parse_time-ebd
...
timeout: Use common parser to parse time duration
2025-04-04 23:46:48 +02:00
renovate[bot]
0d37927151
chore(deps): update rust crate zip to v2.6.1
2025-04-04 21:44:43 +00:00
Sylvestre Ledru
295628a2e9
Merge pull request #7631 from drinkcat/format-hex-default
...
uucore: format: Fix hexadecimal default format print
2025-04-04 23:44:35 +02:00
Sylvestre Ledru
be7b697341
Merge pull request #7654 from RenjiSann/uucore-cargo-toml
...
uucore: Minor fix to optional dependences
2025-04-04 23:43:25 +02:00
Dorian Peron
273a0500d8
uucore: remove clap dev dependency as it is already mentionned in regular dependencies
2025-04-04 18:53:35 +02:00
Dorian Peron
a3f770fbe8
uucore: make glob dependence optional under the parser feature
2025-04-04 18:53:35 +02:00
Dorian Peron
9dd8d8ab0d
uucore: make chrono, chrono-tz, iana-time-zone deps optional under the custom-tz-fmt feature
2025-04-04 18:53:35 +02:00
Nicolas Boichat
edc213d2c7
test_timeout: Add tests for very short timeouts
...
Note that unlike GNU coreutils, any value > 0 will not be treated
as 0, even if the exponent is very large.
2025-04-04 18:23:17 +02:00
Nicolas Boichat
3fc9c40c51
uucore: parser: parse_time: Use ExtendedBigDecimal parser
...
Gives a little bit more flexibility in terms of allowed input
for durations (e.g. in `timeout`), e.g. hex floating point
numbers are now allowed.
Fixes another part of #7475 .
2025-04-04 18:23:17 +02:00
Nicolas Boichat
1d7e0eccc8
uucore: parser: num_parser: Do not Underflow/Overflow when parsing 0
...
Values like 0e18172487393827593258 and 0e-18172487393827593258 should
just be parsed as 0, and do not need to return an error.
2025-04-04 18:12:11 +02:00
Nicolas Boichat
94a26e170e
uucore: parser: parse_time: Handle infinity and nan
...
There were some missing corner cases when handling infinity and
nan:
- inf/infinity can be capitalized
- nan must always be rejected, even if a suffix is provided
Also, return Duration::MAX with infinite values, just for consistency
(num.fract() returns 0 for infinity so technically we were just
short of that).
Add unit tests too.
Fixes some of #7475 .
2025-04-04 18:12:11 +02:00
Daniel Hofstetter
b860ce8553
Merge pull request #7650 from drinkcat/seq-trim-fix
...
seq: Trim whitespaces, then try to remove +
2025-04-04 17:57:09 +02:00
Nicolas Boichat
e0a6482759
seq: Trim whitespaces, then try to remove +
...
Otherwise, `seq` crashes with ` 0xee.` as input.
Also update one of the tests to catch that.
2025-04-04 17:09:33 +02:00
Daniel Hofstetter
bec2cb65b2
Merge pull request #7652 from uutils/renovate/ctrlc-3.x-lockfile
...
chore(deps): update rust crate ctrlc to v3.4.6
2025-04-04 17:01:55 +02:00
renovate[bot]
2564c5acf3
chore(deps): update rust crate ctrlc to v3.4.6
2025-04-04 14:24:20 +00:00
Daniel Hofstetter
22c7e1d0b6
Merge pull request #7647 from drinkcat/uucore-feature-parser
...
uucore: Move extendedbigdecimal and parsers to 2 separate features
2025-04-04 16:23:05 +02:00
Nicolas Boichat
6243dd5494
uucore: Move parser to a feature
...
This will eventually be needed as we'll want parse_time to
call into num_parser, which was previously contained in format
feature.
2025-04-04 15:25:06 +02:00
Nicolas Boichat
a937aa5117
uucore: Move extendedbigdecimal to its own feature
...
This will be needed later on so that we can split format and
parse features.
2025-04-04 14:12:51 +02:00
Sylvestre Ledru
97fb15b02d
Merge pull request #7646 from drinkcat/seq-w-f
...
seq: Do not allow -w and -f to be specified at the same time
2025-04-04 10:56:47 +02:00
Nicolas Boichat
ae3756b434
seq: Do not allow -w and -f to be specified at the same time
...
Fixes #7466 .
2025-04-04 10:17:17 +02:00