nixos/tests/wine: Test all five wine variants

This commit is contained in:
Scott Worley 2021-05-30 22:00:17 -07:00
parent aa845c3100
commit 2690ab613b

View File

@ -1,8 +1,19 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "wine";
{ system ? builtins.currentSystem, pkgs ? import ../.. {
inherit system;
config = { };
}, }:
let
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
makeWineTest = variant:
makeTest {
name = "wine-${variant}";
meta = with pkgs.lib.maintainers; { maintainers = [ chkno ]; };
machine = { pkgs, ... }: { environment.systemPackages = [ pkgs.wine ]; };
machine = { pkgs, ... }: {
environment.systemPackages = [ pkgs.winePackages."${variant}" ];
};
testScript = ''
machine.wait_for_unit("multi-user.target")
@ -11,4 +22,6 @@ import ./make-test-python.nix ({ pkgs, ... }: {
)
assert 'Hello, world!' in greeting
'';
})
};
in pkgs.lib.genAttrs [ "base" "full" "minimal" "staging" "unstable" ]
makeWineTest