mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixos/tests/wine: Test all five wine variants
This commit is contained in:
parent
aa845c3100
commit
2690ab613b
@ -1,14 +1,27 @@
|
||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "wine";
|
||||
meta = with pkgs.lib.maintainers; { maintainers = [ chkno ]; };
|
||||
{ system ? builtins.currentSystem, pkgs ? import ../.. {
|
||||
inherit system;
|
||||
config = { };
|
||||
}, }:
|
||||
|
||||
machine = { pkgs, ... }: { environment.systemPackages = [ pkgs.wine ]; };
|
||||
let
|
||||
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
greeting = machine.succeed(
|
||||
'wine ${pkgs.pkgsCross.mingw32.hello}/bin/hello.exe'
|
||||
)
|
||||
assert 'Hello, world!' in greeting
|
||||
'';
|
||||
})
|
||||
makeWineTest = variant:
|
||||
makeTest {
|
||||
name = "wine-${variant}";
|
||||
meta = with pkgs.lib.maintainers; { maintainers = [ chkno ]; };
|
||||
|
||||
machine = { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.winePackages."${variant}" ];
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
greeting = machine.succeed(
|
||||
'wine ${pkgs.pkgsCross.mingw32.hello}/bin/hello.exe'
|
||||
)
|
||||
assert 'Hello, world!' in greeting
|
||||
'';
|
||||
};
|
||||
in pkgs.lib.genAttrs [ "base" "full" "minimal" "staging" "unstable" ]
|
||||
makeWineTest
|
||||
|
Loading…
Reference in New Issue
Block a user