diff --git a/flake.nix b/flake.nix index 8f0084fa..6a41279c 100644 --- a/flake.nix +++ b/flake.nix @@ -395,6 +395,28 @@ }; komorebi-workspace-nextest = build.craneLib.cargoNextest build.individualCrateArgs; + + # the Python of the Windows e2e guest that needs no guest: the + # vendored core's tests and those of the runner + e2e-tests = + pkgs.runCommand "e2e-tests" + { + nativeBuildInputs = [ + pkgs.git + (pkgs.python3.withPackages (p: [ + p.pillow + p.pytest + ])) + ]; + } + '' + cp -r ${./e2e} e2e + chmod -R u+w e2e + cd e2e + export HOME=$TMPDIR PYTHONPATH=$PWD/lib:$PWD + python -m pytest -q -p no:cacheprovider lib/tests platforms/qemu_windows/tests + touch $out + ''; }; packages = {