Skip to content

Conversation

@drinkcat
Copy link
Collaborator

@drinkcat drinkcat commented Mar 25, 2025

ci: Enable workspace tests on MacOS

chcon/runcon: Only build on Linux

chcon/runcon rely on the selinux crate, that is empty on
non-Linux platforms.

This doesn't matter for normal builds that use the default features
for the platform (explicitly trying to build them will fail though).

This is a problem when using cargo test --workspace though,
as that tries to build all packages, including uu_chcon/uu_runcon.

Just prevent compilation of these source files when target_os != linux.

Cargo.toml: We moved to edition 2024, drop = from fts-sys

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

@drinkcat drinkcat force-pushed the ci-macos branch 2 times, most recently from 8bdcc78 to 42d6682 Compare March 26, 2025 13:14
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

chcon/runcon rely on the selinux crate, that is empty on
non-Linux platforms.

This doesn't matter for normal builds that use the default features
for the platform (explicitly trying to build them will fail though).

This is a problem when using `cargo test --workspace` though,
as that tries to build all packages, including uu_chcon/uu_runcon.

Just prevent compilation of these source files when target_os != linux.
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@drinkcat drinkcat marked this pull request as ready for review March 27, 2025 16:44
@drinkcat
Copy link
Collaborator Author

Unlike Windows, this is fairly manageable and issues are contained to 2 tools only.

@sylvestre sylvestre merged commit 1c75854 into uutils:main Mar 28, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants