summary refs log tree commit diff
path: root/nixos/tests/wine.nix
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2021-05-30 20:49:25 -0700
committerScott Worley <scottworley@scottworley.com>2021-05-31 11:58:48 -0700
commitaa845c31004ea41d2205dbc5c2954437d374d9d2 (patch)
tree7e24da61719410316315423c824d7999a99c4afd /nixos/tests/wine.nix
parent666075648ee0a3a416fcae720e1ee016aa824570 (diff)
downloadnixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.tar
nixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.tar.gz
nixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.tar.bz2
nixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.tar.lz
nixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.tar.xz
nixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.tar.zst
nixpkgs-aa845c31004ea41d2205dbc5c2954437d374d9d2.zip
nixos/tests/wine: Init
Diffstat (limited to 'nixos/tests/wine.nix')
-rw-r--r--nixos/tests/wine.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/tests/wine.nix b/nixos/tests/wine.nix
new file mode 100644
index 00000000000..29b8c482808
--- /dev/null
+++ b/nixos/tests/wine.nix
@@ -0,0 +1,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
+  '';
+})