Commit graph

384 commits

Author SHA1 Message Date
Sylvestre Ledru
23f3551e1c clap/locale: fix the colors for all programs (Closes: #8501)
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-05 08:25:59 +02:00
Martin Kunkel
e41c1405c9 Add devcontainer setup and small related fixes
- Added devcontainer configuration based on Ubuntu 24.04
- Added GitHub Actions workflow for devcontainer testing
- Update cSpell configuration to ingore spelling in devcontainer configs
- Update pre-commit hooks to exclude cSpell.json because pre-commit
  fails for that file due to json with comments format
- Fix filename for cSpell config in vscode settings
- Two tests in `test_dd.rs` are now skipped if /dev/sda1 is not
  available, which is the case in devcontainer
- Update check for existing gnu clone in build-gnu.sh, not checking the
  existence of the directory but the presence of the .git directory.
  This allows us to have the directly as a volume mount in devcontainer
- Remove temporary file `g` after use in build-gnu.sh
2025-08-18 07:34:16 +00:00
Nicolas Boichat
b13bf37f7b util/build-gnu.sh: Change string matching for tests/ls/time-style-diag.sh
We now are closer to what GNU prints, and handle the [posix-] cases
that they do.
2025-07-30 19:45:29 +08:00
Nicolas Boichat
58095fa70d util/build-gnu.sh: Replace $abs_path_dir_
path_prepend_ sets $abs_path_dir_, but the sed command above removes
it. Set it manually instead.

Fixes part of tests/cp/preserve-gid.
2025-07-24 15:21:16 +08:00
Nicolas Boichat
0e74a34113 util/build.sh: Patch tests/local.mk instead of Makefile
Patching tests/local.mk instead of Makefile makes it a bit easier
to see what has been modified with a `git diff`, and Makefile
is generated anyway.
2025-07-24 15:19:50 +08:00
Daniel Hofstetter
5392c341b2
Merge pull request #8340 from sylvestre/adjust-mkdir-restorecon-test
mkdir: Replaced strict restorecon compatibility check with validation…
2025-07-23 14:18:36 +02:00
Daniel Hofstetter
544a313fcb
Merge pull request #8353 from drinkcat/gnu-fix-sigpipe-test
util/build-gnu.sh: Bypass timeout/yes SIGPIPE handling bug
2025-07-22 10:57:58 +02:00
Nicolas Boichat
fac6c2951d util/build-gnu.sh: Bypass timeout/yes SIGPIPE handling bug
See #7252, both `timeout` and `yes` reset the SIGPIPE handler
(actually, the Rust core does that), leading to trap_sigpipe_or_skip_
test:
```
(trap '' PIPE && timeout 10 yes |:) 2>&1 | grep 'Broken pipe'
```
to fail, causing 4 tests to be skipped.

I believe the intent here is to check if the OS supports SIGPIPE,
so it probably makes sense to use System's timeout/yes here, and
run the tests anyway (which, happen to pass).
2025-07-19 15:08:59 +08:00
Justin Tracey
d9be3315c1 printf: remove passing tests from why-error.md 2025-07-16 00:28:34 +02:00
Sylvestre Ledru
2edfd85af7 mkdir: Replaced strict restorecon compatibility check with validation that mkdir -Z sets valid
SELinux contexts, since the Rust selinux crate may produce different but correct contexts
compared to native restorecon.
2025-07-14 21:26:00 +09:00
Sylvestre Ledru
576bd6f565 env: adjust to test after the improvement on the error message 2025-06-30 13:42:40 +02:00
Sudhakar Verma
c674cf1839
Merge pull request #8217 from sudhackar/ls-fix
ls: follow symlinks for xattrs, fix #8216
2025-06-19 10:17:25 +02:00
Teemu Pätsi
e6784a600f
expr: Enable GNU test expr.pl 2025-05-28 22:43:06 +03:00
Sylvestre Ledru
2f577a7d98
publish.sh: be more prescriptive on the grep (#7983)
otherwise, we are getting version.workspace first
2025-05-25 16:33:14 +02:00
Sylvestre Ledru
796201dbfd
publish.sh: also publish uutests 2025-05-25 09:23:57 +02:00
Sylvestre Ledru
d748e21412 update-version.sh: adjust to version 0.1.0 2025-05-24 22:20:54 +02:00
Sylvestre Ledru
b29ef8cfc4 update-version.sh: also update the uufuzz version 2025-05-24 22:19:59 +02:00
Sylvestre Ledru
19cd210ac3 cp: context Disable a check in tests/cp/no-ctx.sh
It is not relevant for us:
* the selinux crate is handling errors
* the test says "maybe we should not fail when no context available"
2025-05-15 09:06:37 +02:00
Daniel Hofstetter
7c865b29a1
Merge pull request #7898 from sylvestre/selinux-err
selinux: get closer to the GNU error msgs
2025-05-09 13:35:29 +02:00
Sylvestre Ledru
b778fa7baf gnu: fix the build with selinux 2025-05-07 23:02:45 +02:00
Sylvestre Ledru
fde3733bf5 selinux: improve the error display 2025-05-07 22:58:52 +02:00
Sylvestre Ledru
832dd495bf selinux: adjust more error messages 2025-05-07 22:58:46 +02:00
Nicolas Boichat
b3c3529d24 util/build-gnu.sh: Accept hex float as sleep parameter
Not that crazy anymore, fixed by #7675.
2025-04-15 10:36:50 +02:00
Ben Wiederhake
53836c9bd9 du: already passes GNU test in spirit, adjust test 2025-04-14 01:38:39 +02:00
Sylvestre Ledru
4724f04547 upgrade to GNU coreutils 9.7 as ref 2025-04-13 12:12:08 +02:00
Dorian Peron
a026a861e0 Remove old coverage-related scripts 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
Sylvestre Ledru
0f4ea79229
remaining-gnu-error.py: Adjust to the new URL 2025-04-01 21:39:01 +02:00
Sylvestre Ledru
302f7842c7 ci: if FAIL => PASS but in the intermittent list, show the info
see:
https://github.com/uutils/coreutils/pull/7522#issuecomment-2744892884
2025-03-22 11:04:20 +01:00
Sylvestre Ledru
fe2d19be6a GNU CI: fix the intermittement management 2025-03-21 12:04:43 +01:00
Daniel Hofstetter
53ed1a58cb python: fix formatting in compare_test_results.py 2025-03-19 09:07:35 +01:00
Daniel Hofstetter
fc46a041f8
Merge pull request #7486 from sylvestre/python
Python: add ruff check and fix the code
2025-03-19 08:07:43 +01:00
Sylvestre Ledru
38aee73fe5
GNU/CI: use the aggregated-result.json files and move to python (#7471)
* GNU/CI: use the aggregated-result.json files and move to python

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* simplify code

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-03-19 07:15:11 +01:00
Sylvestre Ledru
b1c3175387 fix ruff warnings 2025-03-18 20:52:46 +01:00
Sylvestre Ledru
663a9202e5 ruff: reformat python code 2025-03-18 20:52:46 +01:00
Sylvestre Ledru
2bd7ee972c
Use match in the python script
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-03-17 11:51:22 +01:00
Sylvestre Ledru
2f872860f0 Look at all individual results and summarize 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
cbca62866d Rewrite analyze-gnu-results in python
This time just analyzing the json result file
2025-03-17 11:09:18 +01:00
Sylvestre Ledru
1308d89907 gnu-json-result: fix warning 'E722 Do not use bare except' 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
d0201da89d gnu-json-result: add checks to the script 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
ad6723c44b selinux test: collect and process the results 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
72ad89d956 selinux: run the GNU test too 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
45cad840f2
why-skip: Improve the display 2025-03-12 16:16:14 +01: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
Sylvestre Ledru
105a90c9df prepare version 0.0.30 2025-03-08 11:04:08 +01:00
Sylvestre Ledru
2fb2342a56
Remove a head test from the list of failure
https://github.com/uutils/coreutils/pull/7408
2025-03-07 14:02:56 +01:00
Zachary Goff-Hodges
43036e2c7b util: update 'build-gnu.sh' to use CARGO_TARGET_DIR 2025-03-05 12:02:11 +01:00
Jeffrey Finkelstein
1606968bf2 rm: recursive implementation of -r option
Change the implementation of `rm -r` so that it is explicitly recursive
so that (1) there is one code path regardless of whether `--verbose` is
given and (2) it is easier to be compatible with GNU `rm`.

This change eliminates a dependency on the `walkdir` crate.

Fixes #7033, fixes #7305, fixes #7307.
2025-02-17 11:18:24 -05:00
Daniel Hofstetter
3de1ccadba ci: add words to spell-checker:ignore 2025-02-14 09:14:10 +01:00