mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
nixosTests.wine: migrate to runTest (#555632)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user