nix-scripts/artiq/windows/default.nix
Stephan Maka d7917b4b5b windows tests: rename default.nix to run-test.nix
default.nix will now run the tests outside of hydra.
2019-04-18 15:54:30 +02:00

27 lines
646 B
Nix

{ pkgs ? import <nixpkgs> {},
diskImage ? "/opt/windows/c.img",
qemuMem ? "2G",
testTimeout ? 180,
}:
with pkgs;
let
windowsRunner = overrides:
import ./run-test.nix {
inherit pkgs diskImage qemuMem testTimeout;
};
in
stdenv.mkDerivation {
name = "windows-test";
src = ./.;
phases = [ "installPhase" "checkPhase" ];
installPhase = "touch $out";
doCheck = true;
checkPhase = ''
${windowsRunner { testCommand = "set ARTIQ_ROOT=%cd%\\anaconda\\envs\\artiq-env\\Lib\\site-packages\\artiq\\examples\\kc705_nist_clock&&set ARTIQ_LOW_LATENCY=1&&python -m unittest discover -v artiq.test"; }}/bin/run.sh
'';
}