test: make the Windows-hosted suite portable
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m30s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m21s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m38s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m4s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Failing after 30s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Failing after 33s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m2s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 24s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 39s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 5m42s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 5m30s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m7s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 1m10s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 1m14s
VoidBuildSystem CI / 5 · Release (push) Skipped

- locate the vbs binary as vbs.exe on Windows (the .exe suffix was
  missing, so every test that spawns the CLI failed immediately);
- skip the POSIX permission-bit assertion on Windows (ACLs);
- skip the symlink checks when the host cannot create symlinks;
- skip compiler-spawning tests under Wine, which cannot execute the
  Linux-hosted compiler from a Windows process.
This commit is contained in:
faumaray committed 2026-12-06 08:09:38 +03:00
1 parent bd486c802c
commit adb7b4effe
4 files changed
+63 -9

No files matched your search

+3
View File
@@ -84,7 +84,10 @@ VOID_TEST(Signing, seed_roundtrip_sign_verify_and_rejections) {
const auto permissions = std::filesystem::status(seed_path).permissions();
Void::Testing::expect((permissions & Perms::owner_read) != Perms::none);
Void::Testing::expect((permissions & Perms::owner_write) != Perms::none);
#if !defined(_WIN32)
// Windows filesystem permissions are ACL-based and not exposed as POSIX bits.
Void::Testing::expect((permissions & (Perms::group_all | Perms::others_all)) == Perms::none);
#endif
auto public_key = Provenance::public_key_from_seed(seed_path);
Void::Testing::require(public_key.has_value());