Nicolas Boichat
1782de8999
seq: Add tests for default float formats
...
Add tests for some of the default float formats (%f, %g, %E), mostly
to check that the default precision is correctly set to 6 digits.
2025-03-14 12:05:16 +01:00
Nicolas Boichat
bfa8bf72c7
uucore: format: Fix default Float precision in try_from_spec
...
The default precision is 6, no matter the format. This applies
to all float formats, not just "%g" (aka FloatVariant::Shortest).
Fixes #7361 .
2025-03-14 12:05:16 +01:00
Nicolas Boichat
0a8155b5c2
uucore: format: Fix capitalization of 0 in scientific formating
...
0.0E+00 was not capitalized properly when using `%E` format.
Fixes #7382 .
Test: cargo test --package uucore --all-features float
Test: cargo run printf "%E\n" 0 => 0.000000E+00
2025-03-14 12:05:16 +01:00
Sylvestre Ledru
a193073556
disable some tests for now
...
Fails with:
```
---- test_ls::test_ls_color_norm stdout ----
touch: /tmp/.tmp9wbpVl/exe
touch: /tmp/.tmp9wbpVl/no_color
run: /home/runner.linux/work/target/debug/coreutils ls -gGU --color exe no_color
thread 'test_ls::test_ls_color_norm' panicked at tests/by-util/test_ls.rs:5307:10:
'norm exe
norm no_color
' does not contain 'norm exe
norm no_color'
---- test_ls::test_ls_inode stdout ----
touch: /tmp/.tmpiozh4d/test_inode
run: /home/runner.linux/work/target/debug/coreutils ls test_inode -i
run: /home/runner.linux/work/target/debug/coreutils ls test_inode
run: /home/runner.linux/work/target/debug/coreutils ls -li test_inode
thread 'test_ls::test_ls_inode' panicked at tests/by-util/test_ls.rs:2776:5:
assertion failed: re_long.is_match(result.stdout_str())
---- test_ls::test_ls_long_format stdout ----
mkdir: /tmp/.tmpDm1xDQ/test-long-dir
touch: /tmp/.tmpDm1xDQ/test-long-dir/test-long-file
mkdir: /tmp/.tmpDm1xDQ/test-long-dir/test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls -l test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls --long test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls --format=long test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls --format=lon test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls --for=long test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls --format=verbose test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls --for=verbose test-long-dir
run: /home/runner.linux/work/target/debug/coreutils ls -lan test-long-dir
thread 'test_ls::test_ls_long_format' panicked at tests/by-util/test_ls.rs:1139:62:
Stdout does not match regex:
total 0
drwxr-xr-x+ 3 1001 1001 80 Mar 14 08:14 .
drwxr-xr-x+ 3 1001 1001 60 Mar 14 08:14 ..
drwxr-xr-x+ 2 1001 1001 40 Mar 14 08:14 test-long-dir
-rw-r--r-- 1 1001 1001 0 Mar 14 08:14 test-long-file
---- test_ls::test_ls_long_formats stdout ----
touch: /tmp/.tmpCHVj2X/test-long-formats
run: /home/runner.linux/work/target/debug/coreutils ls -l --author test-long-formats
thread 'test_ls::test_ls_long_formats' panicked at tests/by-util/test_ls.rs:1514:10:
Stdout does not match regex:
-rw-r--r--+ 1 runner runner runner 0 Mar 14 08:14 test-long-formats
failures:
test_ls::test_ls_color_norm
test_ls::test_ls_inode
test_ls::test_ls_long_format
test_ls::test_ls_long_formats
```
2025-03-14 11:54:52 +01:00
M Bussonnier
57d0157c6a
split test for 32 and 64 bits systems
2025-03-14 11:00:08 +01:00
M Bussonnier
7632acfc90
Fix touch -t with 2 digit years when YY > 68
...
When using `touch -t` with a 2 digit year, the year is interpreted as
a relative year to 2000.
When the year is 68 or less, it should be interpreted as 20xx.
When the year is 69 or more, it should be interpreted as 19xx.
This is the behavior of GNU `touch`.
fixes gh-7280
Arguably 2 digits years should be deprecated as we
are already closer to 2069, than 1969.
2025-03-14 11:00:08 +01:00
Sylvestre Ledru
d570512bdc
Merge pull request #7439 from dezgeg/ficlone
...
cp: Use FICLONE ioctl constant from linux-raw-sys
2025-03-14 09:59:36 +01:00
Sylvestre Ledru
4ba518d43b
Merge pull request #7446 from cakebaker/true_false_remove_newline_in_version_string
...
true,false: remove unnecessary newline from version string
2025-03-14 09:58:38 +01:00
Sylvestre Ledru
0345dc8bdc
Don't clone, just take the sources from the gh runner
2025-03-14 09:54:44 +01:00
Sylvestre Ledru
2b294bb368
fix test_runcon::invalid stdout
2025-03-14 09:54:29 +01:00
Sylvestre Ledru
117fea23ba
selinux test: disable some tests (not a big deal)
2025-03-14 09:54:29 +01:00
Sylvestre Ledru
3a858905fe
chcon: ignore valid_reference_repeated_reference for causing issue 7443
2025-03-14 09:54:29 +01:00
Sylvestre Ledru
f60b4971c4
runcon: adjust the test
2025-03-14 09:54:29 +01:00
Sylvestre Ledru
1f144618e9
gh action: build and run tests on selinux
2025-03-14 09:54:29 +01:00
Daniel Hofstetter
10fc96a78b
true,false: remove newline from version string
2025-03-14 09:21:37 +01:00
Daniel Hofstetter
6cf1374b60
true,false: rename test_exit_code -> test_no_args
2025-03-14 08:59:27 +01:00
Daniel Hofstetter
77b701cfc4
true,false: use no_output() in tests
2025-03-14 08:57:30 +01:00
Daniel Hofstetter
5b649f49e8
Merge pull request #7445 from uutils/renovate/half-2.x-lockfile
...
chore(deps): update rust crate half to v2.5.0
2025-03-14 07:44:39 +01:00
Daniel Hofstetter
22145d7a2c
Merge pull request #7444 from uutils/renovate/tempfile-3.x-lockfile
...
fix(deps): update rust crate tempfile to v3.19.0
2025-03-14 07:15:59 +01:00
renovate[bot]
d8551341c5
chore(deps): update rust crate half to v2.5.0
2025-03-14 06:13:45 +00:00
renovate[bot]
bf204f42eb
fix(deps): update rust crate tempfile to v3.19.0
2025-03-14 01:34:11 +00:00
Tuomas Tynkkynen
cacb1a4fcb
cp: Use FICLONE ioctl constant from linux-raw-sys
...
The current ioctl operation code for FICLONE is fully open-coded instead
of using the ioctl macros, which makes it non-portable to other
architectures including mips, arm & powerpc. Get the constant from the
linux-raw-sys crate instead, which is already a transitive dependency.
2025-03-13 18:23:48 +02:00
Louis DISPA
56c3553f2c
expr: Refactor evaluation to be interative instead of recursive
...
Fix a stack overflow happening on long inputs
2025-03-13 17:05:51 +01:00
Louis DISPA
a236f85e9d
expr: Add a long input test
...
Test a stack overflow that was happening on linux for long inputs.
2025-03-13 17:05:51 +01:00
Daniel Hofstetter
429a22368a
Merge pull request #7437 from uutils/sylvestre-patch-4
...
why-skip: Improve the display
2025-03-12 16:46:06 +01:00
Sylvestre Ledru
45cad840f2
why-skip: Improve the display
2025-03-12 16:16:14 +01:00
Sylvestre Ledru
ba247e6765
Merge pull request #7434 from cakebaker/bump_libc
...
Bump `libc` & remove unnecessary `unsafe` blocks
2025-03-12 09:57:25 +01:00
Daniel Hofstetter
065a4de5a2
Merge pull request #7436 from uutils/renovate/quote-1.x-lockfile
...
fix(deps): update rust crate quote to v1.0.40
2025-03-12 07:06:03 +01:00
renovate[bot]
0970e15e17
fix(deps): update rust crate quote to v1.0.40
2025-03-12 02:34:41 +00:00
Daniel Hofstetter
33a34e4e54
ls,wc: remove unnecessary unsafe blocks
2025-03-11 17:17:15 +01:00
Daniel Hofstetter
11f2249f15
Bump libc from 0.2.170 to 0.2.171
2025-03-11 17:04:47 +01:00
Daniel Hofstetter
9bbe579cb6
Merge pull request #7431 from RenjiSann/printf-fix-octal-escape
...
printf: fix octal escape parsing
2025-03-11 15:54:49 +01:00
Dorian Peron
bbca2ffdbf
printf: fix escape octal parsing
...
Co-authored-by: aryal <141743392+aryalaadi@users.noreply.github.com>
2025-03-11 12:46:59 +01:00
Daniel Hofstetter
bc4917a20d
Merge pull request #7432 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.32
2025-03-11 07:09:26 +01:00
renovate[bot]
f25da5a9a3
chore(deps): update rust crate clap to v4.5.32
2025-03-10 23:28:35 +00:00
Dorian Peron
cd1e764581
test(printf): Add test for escaped octal then newline
2025-03-10 16:25:02 +01:00
Daniel Hofstetter
11c20b7686
Merge pull request #7430 from Bluemangoo/fix/uptime
...
fix uptime on windows
2025-03-10 15:55:02 +01:00
Bluemangoo
150960ac5c
uucore&uptime: fix docs and warnings
2025-03-10 21:29:08 +08:00
Bluemangoo
b1fc601cf8
uucore: fix uptime on Windows
2025-03-10 21:29:08 +08:00
Daniel Hofstetter
3243fbaa03
Merge pull request #7411 from sylvestre/ci2
...
CI: improve the intermittent ignore
2025-03-10 10:40:36 +01:00
Sylvestre Ledru
55bedbb68e
CI: improve the intermittent ignore
2025-03-10 10:14:40 +01:00
Daniel Hofstetter
b85d7ad528
Merge pull request #7428 from uutils/renovate/serde-monorepo
...
chore(deps): update rust crate serde to v1.0.219
2025-03-10 07:21:19 +01:00
renovate[bot]
e51feb5471
chore(deps): update rust crate serde to v1.0.219
2025-03-09 22:23:10 +00:00
Sylvestre Ledru
59af89ec25
Merge pull request #7426 from cakebaker/tests_replace_run
...
tests: replace `run()` with `succeeds()` or `fails()`
2025-03-09 18:02:12 +01:00
Daniel Hofstetter
df4dfea852
tests: replace run() with succeeds() or fails()
2025-03-09 16:53:56 +01:00
Daniel Hofstetter
3844a74c38
Merge pull request #7425 from uutils/renovate/terminal_size-0.x-lockfile
...
chore(deps): update rust crate terminal_size to v0.4.2
2025-03-09 13:29:37 +01:00
renovate[bot]
d819ed861f
chore(deps): update rust crate terminal_size to v0.4.2
2025-03-08 22:31:59 +00:00
Sylvestre Ledru
0379304b0d
Document the release process ( #7419 )
...
* Document the release process
* doc: Update publish command in DEVELOPMENT.md
* Mention that assets should be checked
2025-03-08 15:50:40 +01:00
Sylvestre Ledru
088599f416
Merge pull request #7418 from sylvestre/0.0.30
...
prepare version 0.0.30
2025-03-08 12:13:54 +01:00
Sylvestre Ledru
7747c41549
Force specific version of selinux and fts which doesn't require rust 2024 edition
...
$ cargo +1.82.0 update --package selinux-sys --precise 0.6.13 && cargo fetch --locked --quiet
2025-03-08 11:43:09 +01:00