From 2d830fed8acb89a67622cca25a3f649e1ef6486d Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 28 Oct 2026 19:33:26 -0700 Subject: [PATCH] test(nix): run the e2e tests in nix flake check The vendored core's tests and those of the runner, which need no guest. --- flake.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 = {