windows: run cargo tests

This commit is contained in:
Sebastien Bourdeauducq 2022-03-23 09:53:45 +08:00
parent d92ce201d3
commit b10b49e39a
1 changed files with 4 additions and 1 deletions

View File

@ -78,7 +78,6 @@ in rec {
name = "nac3artiq"; name = "nac3artiq";
src = ../.; src = ../.;
cargoLock = { lockFile = ../Cargo.lock; }; cargoLock = { lockFile = ../Cargo.lock; };
doCheck = false;
nativeBuildInputs = [ pkgs.wineWowPackages.stable pkgs.zip ]; nativeBuildInputs = [ pkgs.wineWowPackages.stable pkgs.zip ];
buildPhase = buildPhase =
'' ''
@ -96,6 +95,10 @@ in rec {
zip $out/nac3artiq.zip nac3artiq.pyd zip $out/nac3artiq.zip nac3artiq.pyd
echo file binary-dist $out/nac3artiq.zip >> $out/nix-support/hydra-build-products echo file binary-dist $out/nac3artiq.zip >> $out/nix-support/hydra-build-products
''; '';
checkPhase =
''
wine64 cargo test --release
'';
dontFixup = true; dontFixup = true;
}; };
wine-msys2 = pkgs.writeShellScriptBin "wine-msys2" wine-msys2 = pkgs.writeShellScriptBin "wine-msys2"