coreutils/tests
Martin Kunkel 3b4b769976
tests: fix execution on WSL2, Ubuntu 24.04 (#8235)
* tests: fix execution on WSL2, Ubuntu 24.04

Skip incompatible parts of tests to ensure that
    cargo nextest run --features unix
executes successfully in WSL2, Ubuntu 24.04 distribution.

Changes
* Skip tests that required sys/kernel/profiling which is not
available in WSL2 default configuration.
* Use timezones in tests that are part of the standard tzdata
list and not only available in backwards list. Backwards list is
not installed by default in Ubuntu 24.04 (package tzdata-legacy).
* check that /proc/modules is not empty when expecting content,
because it is empty in WSL2 default configuration.
* Skip logname test not only in WSL1, also in WSL2.

* Add workflow for WSL2

This will setup WSL2 on windows-latest runner, install
Ubuntu-24.04, and run the feat_os_unix tests.

* wsl2: implemented review findings

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-08-03 14:38:49 +02:00
..
benches/factor chore: cleanup unused dependencies 2025-07-02 19:47:23 -04:00
by-util tests: fix execution on WSL2, Ubuntu 24.04 (#8235) 2025-08-03 14:38:49 +02:00
fixtures test(sort): Fix fixtures 2025-07-25 13:51:53 +02:00
uutests Merge pull request #8343 from TheJJ/fix-mknod-mode 2025-07-29 11:53:21 +02:00
test_util_name.rs test_util_name: ignore sort tests 2025-07-25 13:51:53 +02:00
tests.rs uutests: fix the doc 2025-03-29 09:28:54 +01:00