Commit Graph

385 Commits

Author SHA1 Message Date
Sylvestre Ledru 59b94e181d prepare release 0.2.0
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-06 13:14:20 +02:00
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