Martin
a577108ccd
README.md: Refer to macOS when talking about the OS, not Mac the hardware
2025-03-16 13:05:14 +01:00
Sylvestre Ledru
87ec8285c3
Merge pull request #7459 from Ecordonnier/eco/musl-utmpx
...
utmpx.rs: use correct constant names for musl libc
2025-03-16 10:02:41 +01:00
Sylvestre Ledru
d25b8ae935
Merge pull request #7453 from benyaminl/readme-install-fedora-rhel
...
add fedora and RHEL installation docs
2025-03-16 10:00:54 +01:00
Sylvestre Ledru
91456e4d53
Merge pull request #7460 from ohno418/fix-apple-source-link
...
CONTRIBUTING: fix broken link to Apple's file_cmds
2025-03-16 09:41:28 +01:00
Benyamin Limanto
598889ad9f
add ignore spell in cspell wordlist
2025-03-16 15:04:28 +07:00
Yutaro Ohno
9cdd11668a
CONTRIBUTING: fix broken link to Apple's file_cmds
2025-03-16 13:19:42 +09:00
Etienne Cordonnier
f084b7f168
make cargo fmt happy
2025-03-16 00:21:45 +01:00
Etienne Cordonnier
591bef3759
utmpx.rs: use correct constant names for musl libc
...
Unfortunately, the name of those constants are not standardized:
glibc uses __UT_HOSTSIZE, __UT_LINESIZE, __UT_NAMESIZE
musl uses UT_HOSTSIZE, UT_LINESIZE, UT_NAMESIZE
See:
1. https://git.musl-libc.org/cgit/musl/tree/include/utmpx.h
2. https://github.com/bminor/glibc/blob/master/sysdeps/gnu/bits/utmpx.h#L35
This is a partial fix for https://github.com/uutils/coreutils/issues/1361
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-03-15 22:39:35 +01:00
Sylvestre Ledru
0b228cfd3e
Merge pull request #7441 from cakebaker/all_adapt_version_string
...
all: add `(uutils coreutils)` to version string
2025-03-15 17:35:09 +01:00
Daniel Hofstetter
7e26f79052
Merge pull request #7456 from uutils/renovate/vmactions-freebsd-vm-1.x
...
chore(deps): update vmactions/freebsd-vm action to v1.1.9
2025-03-15 16:11:03 +01:00
Daniel Hofstetter
75260a5889
test: adapt test to new version string
2025-03-15 16:03:17 +01:00
Daniel Hofstetter
d34eb25251
all: use crate_version! from uucore
2025-03-15 16:03:17 +01:00
Daniel Hofstetter
12ab9c2c21
uucore: add crate_version macro
2025-03-15 16:03:16 +01:00
renovate[bot]
e760bb802b
chore(deps): update vmactions/freebsd-vm action to v1.1.9
2025-03-15 14:25:39 +00:00
Benyamin Limanto
8e04eb743a
add fedora and RHEL installation docs
2025-03-15 06:55:58 +07:00
Dorian Péron
e147063e26
Merge pull request #7413 from drinkcat/printf-nan
...
Fix `nan` print, simplify negative number printing.
2025-03-14 14:23:31 +01:00
Daniel Hofstetter
5f6a7d0ffa
Merge pull request #7440 from sylvestre/selinux
...
CI: add a new job to test with Selinux
2025-03-14 13:40:01 +01:00
Daniel Hofstetter
eb11961329
Merge pull request #7447 from uutils/renovate/linux-raw-sys-0.x-lockfile
...
chore(deps): update rust crate linux-raw-sys to v0.9.3
2025-03-14 13:34:38 +01:00
Nicolas Boichat
0c0d119413
test: printf: Add a test for scientific printing of negative number
...
This was broken before the last few commits.
2025-03-14 12:42:00 +01:00
Nicolas Boichat
92a291b71d
test: printf: Add nan, inf, negative zero
...
Add a few end-to-end tests for printf of unusual floats (nan,
infinity, negative zero).
2025-03-14 12:42:00 +01:00
Nicolas Boichat
b7dcaa34da
uucore: format: print absolute value of float, then add sign
...
Simplifies the code, but also fixes printing of negative and positive `NaN`:
`cargo run printf "%f %f\n" nan -nan`
Fixes part 2 of #7412 .
2025-03-14 12:42:00 +01:00
Nicolas Boichat
e3872e8e8f
uucore: format: force NaN back to lowercase
...
Fixes formatting of `NaN` to `nan`.
Fixes part 1 of #7412 .
2025-03-14 12:42:00 +01:00
renovate[bot]
7b055f10fc
chore(deps): update rust crate linux-raw-sys to v0.9.3
2025-03-14 11:06:34 +00:00
Nicolas Boichat
c0a1179e7c
seq: Enable test_auto_precision and test_undefined
...
Those tests appear to have been fixed, enable them.
2025-03-14 12:05:16 +01:00
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