Commit Graph
559 Commits
Author SHA1 Message Date
oech3andGitHub f72130e9d8 GnuTests: Caches for faster configure and skipping make (#9627) 2025-12-20 00:21:39 +01:00
Sylvestre LedruandGitHub 9212ce2d75 Merge pull request #9652 from oech3/gnu-tb
GnuTests: Split online process to a script
2025-12-19 22:20:07 +01:00
oech3GitHuboech3 <>
a33c9445f9 GnuTests: Reduce GNU deps on BSD (#9644)
Co-authored-by: oech3 <>
2025-12-16 18:49:26 +01:00
Chris DrydenandGitHub 0a1ae35177 Merge pull request #9666 from ChrisDryden/fix-inotify-dir-recreate-test
fix: patch inotify-dir-recreate test for notify crate's threaded inotify
2025-12-16 14:22:24 +01:00
oech3andoech3 f2f6e93b8c GnuTests: Split online process to a script 2025-12-14 19:49:50 +09:00
oech3andoech3 adcc9550b6 why-{skip,error}.md: Remove stty tests and shared strings 2025-12-10 19:01:25 +09:00
oech3andGitHub 13c1624538 why-{skip,error}.md: Cleanup (#9602) 2025-12-10 10:34:07 +01:00
Daniel HofstetterandGitHub 911fc92a48 Merge pull request #9598 from sylvestre/tail-intermittent-2
tail: fix intermittent overlay-headers test by batching inotify events
2025-12-10 10:09:24 +01:00
Martin Kunkel 7067251a84 Exclude test modules from coverage report 2025-12-09 18:17:06 +00:00
Martin Kunkel c31de82629 unit test coverage: fix missing coverage
binary-path option of grcov needs to be set to full target/debug folder
to include unit test binaries.
2025-12-09 16:45:53 +00:00
Sylvestre Ledru adafa2fdd9 tail: add debug info 2025-12-08 07:59:02 +01:00
Chris DrydenandGitHub 67ede852a0 stty: Changing shell command to add recognizing a TTY for stty tests (#9336) 2025-12-07 22:03:25 +01:00
Daniel HofstetterandGitHub dd118e0570 Merge pull request #9596 from sylvestre/0.5.0
prepare version 0.5.0
2025-12-07 17:28:53 +01:00
oech3andGitHub 3528d106e4 GHA-delete-GNU-workflow-logs.sh: Support custom jq command and support jaq for the case it is not installed as jq (#9581) 2025-12-07 17:07:44 +01:00
Sylvestre Ledru 61e0eae8fc prepare version 0.5.0 2025-12-07 16:55:01 +01:00
39a8c87fd0 build-gnu.sh: Enable misc/coreutils.sh (#9572)
* build-gnu.sh: Enable misc/coreutils.sh

* why-error.md: Remove misc/coreutils.sh

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

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-12-07 15:24:31 +01:00
oech3andGitHub 227501ba8d build-gnu.sh: Remove 2 non-GNU binary 2025-12-07 05:38:36 +09:00
5b261bc1af du: handle --files0-from=- with piped in - (#8985)
* du: handle --files0-from=- with piped in '-'

* build-gnu.sh: remove incorrect string replacement

in tests/du/files0-from.pl

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-12-05 23:07:16 +01:00
mattsuandGitHub 13ea1fc1d1 chmod:fix safe traversal/access (#9554)
* feat(chmod): use dirfd for recursive subdirectory traversal

- Update chmod recursive logic to use directory file descriptors instead of full paths for subdirectories
- Improves performance, avoids path length issues, and ensures dirfd-relative openat calls
- Add test to verify strace output shows no AT_FDCWD with multi-component paths

* test(chmod): add spell-check ignore for dirfd, subdirs, openat, FDCWD

Added a spell-checker ignore directive in the chmod test file to suppress false positives for legitimate technical terms used in Unix API calls.

* test(chmod): enforce strace requirement in recursive test, fail fast instead of skip

Previously, the test_chmod_recursive_uses_dirfd_for_subdirs test skipped gracefully if strace
was unavailable, without failing. This change enforces the strace dependency by failing the
test immediately if strace is not installed or runnable, ensuring the test runs reliably
in environments where it is expected to pass, and preventing silent skips.

* ci: install strace in Ubuntu CI jobs for debugging system calls

Add installation of strace tool on Ubuntu runners in both individual build/test and feature build/test jobs. This enables tracing system calls during execution, aiding in debugging and performance analysis within the CI/CD pipeline. Updated existing apt-get commands and added conditional steps for Linux-only installations.

* ci: Add strace installation to Ubuntu-based CI workflows

Install strace on ubuntu-latest runners across multiple jobs to enable system call tracing for testing purposes, ensuring compatibility with tests that require this debugging tool. This includes updating package lists in existing installation steps.

* chore(build): install strace and prevent apt prompts in Cross.toml pre-build

Modified the pre-build command to install strace utility for debugging and added -y flag to apt-get install to skip prompts, ensuring non-interactive builds.

* feat(build): support Alpine-based cross images in pre-build

Detect package manager (apt vs apk) to install tzdata and strace
in both Debian/Ubuntu and Alpine *-musl targets. Added fallback
warning for unsupported managers. This ensures strace is available
for targets using Alpine, which doesn't have apt-get.

* refactor(build): improve pre-build script readability by using multi-line strings

Replace escaped multi-line string with triple-quoted string for better readability in Cross.toml.

* feat(ci): install strace in WSL2 GitHub Actions workflow

Install strace utility in the WSL2 environment to support tracing system calls during testing. Minor update to Cross.toml spell-checker ignore list for consistency with change.

* ci(wsl2): install strace as root with non-interactive apt-get

Updated the WSL2 workflow step to use root shell (wsl-bash-root) for installing strace, removing sudo calls and adding DEBIAN_FRONTEND=noninteractive to prevent prompts. This improves CI reliability by ensuring direct root access and automated, interrupt-free package installation.

* ci: Move strace installation to user shell and update spell ignore

Fix WSL2 GitHub Actions workflow by installing strace as the user instead of root for better permission handling, and add "noninteractive" to the spell-checker ignore comment for consistency with the new apt-get command. This ensures the tool is available in the testing environment without unnecessary privilege escalation.

* chore: ci: remove unused strace installation from CI workflows

Remove strace package installation from multiple GitHub Actions workflow files (CICD.yml, l10n.yml, wsl2.yml). Strace was historically installed in Ubuntu jobs for debugging system calls, but it's no longer required for the tests and builds, reducing CI setup time and dependencies.

* ci: add strace installation and fix spell-checker comments in CI files

- Install strace package in CICD workflow to support safe traversal verification for utilities like rm, chmod, chown, chgrp, mv, and du, enabling syscall tracing for testing.
- Clean up spell-checker ignore comments in wsl2.yml and Cross.toml by removing misplaced flags.第二个测试产品**ci: add strace installation and fix spell-checker comments in CI files**

- Install strace package in CICD workflow to support safe traversal verification for utilities like rm, chmod, chown, chgrp, mv, and du, enabling syscall tracing for testing.
- Clean up spell-checker ignore comments in wsl2.yml and Cross.toml by removing misplaced flags.

* test: add regression guard for recursive chmod dirfd-relative traversal

Add a check in check-safe-traversal.sh to ensure recursive chmod operations use dirfd-relative openat calls instead of AT_FDCWD with multi-component paths, preventing potential race conditions. Ignore the corresponding Rust test as it is now covered by this shell script guard.
2025-12-05 19:50:34 +01:00
oech3andGitHub ddc703c748 why-skip.md: Let spell-checker:ignore a comment 2025-12-02 15:12:07 +09:00
Daniel HofstetterandGitHub ee39b358e7 Merge pull request #9522 from oech3/no-wget
Remove wget dep
2025-11-30 14:31:43 +01:00
oech3andGitHub 5f31b10d71 why-skip.md: Remove 1 passing root test
https://github.com/uutils/coreutils/actions/runs/19789180702/job/56699812412#step:13:47
2025-11-30 16:24:45 +09:00
Sylvestre LedruandGitHub 821c674664 Merge pull request #9521 from ChrisDryden/skip_to_fail
Add functionality to show when tests were previously skipped and now failing accurately
2025-11-29 21:53:07 +01:00
Christopher Dryden a917791cc8 Add functionality to show when tests were previously skipped and now failing accurately 2025-11-29 15:55:59 +00:00
oech3andoech3 994d07b211 Remove wget dep 2025-11-30 00:44:13 +09:00