nixosTests.wine: migrate to runTest (#555632)

This commit is contained in:
Yohann Boniface
2026-08-24 19:24:43 +00:00
committed by GitHub
2 changed files with 11 additions and 11 deletions

View File

@@ -1920,7 +1920,10 @@ in
inherit pkgs runTest;
inherit (pkgs) lib;
};
wine = handleTest ./wine.nix { };
wine = import ./wine.nix {
inherit pkgs runTest;
inherit (pkgs) lib;
};
wireguard = import ./wireguard {
inherit pkgs runTest;
inherit (pkgs) lib;

View File

@@ -1,28 +1,25 @@
{
system ? builtins.currentSystem,
pkgs ? import ../.. {
inherit system;
config = { };
},
pkgs,
lib,
runTest,
}:
let
inherit (pkgs.lib)
inherit (lib)
concatMapStrings
listToAttrs
optionals
optionalString
;
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
hello32 = "${pkgs.pkgsCross.mingw32.hello}/bin/hello.exe";
hello64 = "${pkgs.pkgsCross.mingwW64.hello}/bin/hello.exe";
makeWineTest = packageSet: exes: variant: rec {
name = "${packageSet}-${variant}";
value = makeTest {
value = runTest {
inherit name;
meta = with pkgs.lib.maintainers; {
meta = with lib.maintainers; {
maintainers = [ chkno ];
};
@@ -74,6 +71,6 @@ listToAttrs (
])
# This wayland combination times out after spending many hours.
# https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.wine.wineWowPackages-wayland.x86_64-linux
(pkgs.lib.remove "wayland" variants)
(lib.remove "wayland" variants)
)
)