mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 22:01:22 +01:00
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:
1 parent
09ce64e3e4
commit
2d830fed8a
1 file changed
+22
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user