test(nix): run the e2e tests in nix flake check

The vendored core's tests and those of the runner, which need no guest.
This commit is contained in:
LGUG2Z committed 2026-10-30 18:22:44 -07:00
1 parent 09ce64e3e4
commit 2d830fed8a
1 file changed
+22
+22
View File
@@ -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 = {