summary refs log blame commit diff
path: root/nixos/tests/wine.nix
blob: 29b8c48280836d659afe0fd0a5fdf3bffecb86db (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                           
import ./make-test-python.nix ({ pkgs, ... }: {
  name = "wine";
  meta = with pkgs.lib.maintainers; { maintainers = [ chkno ]; };

  machine = { pkgs, ... }: { environment.systemPackages = [ pkgs.wine ]; };

  testScript = ''
    machine.wait_for_unit("multi-user.target")
    greeting = machine.succeed(
        'wine ${pkgs.pkgsCross.mingw32.hello}/bin/hello.exe'
    )
    assert 'Hello, world!' in greeting
  '';
})