Core: Add a test suite (#9297)

Adds a test suite for testing hyprland's features with a runtime tester

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
Vaxry 2025-06-26 19:43:39 +02:00 committed by GitHub
parent 9a67e0421b
commit 3d6476c902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 2096 additions and 15 deletions

View file

@ -91,6 +91,7 @@
overlays = with self.overlays; [
hyprland-packages
hyprland-extras
hyprland-debug
];
});
pkgsCrossFor = eachSystem (system: crossSystem:
@ -100,6 +101,22 @@
overlays = with self.overlays; [
hyprland-packages
hyprland-extras
hyprland-debug
];
});
pkgsDebugFor = eachSystem (system:
import nixpkgs {
localSystem = system;
overlays = with self.overlays; [
hyprland-debug
];
});
pkgsDebugCrossFor = eachSystem (system: crossSystem:
import nixpkgs {
localSystem = system;
inherit crossSystem;
overlays = with self.overlays; [
hyprland-debug
];
});
in {
@ -123,7 +140,8 @@
};
};
};
});
}
// (import ./nix/tests inputs pkgsFor.${system}));
packages = eachSystem (system: {
default = self.packages.${system}.hyprland;
@ -131,12 +149,14 @@
(pkgsFor.${system})
# hyprland-packages
hyprland
hyprland-debug
hyprland-unwrapped
hyprtester
# hyprland-extras
xdg-desktop-portal-hyprland
;
inherit (pkgsDebugFor.${system}) hyprland-debug;
hyprland-cross = (pkgsCrossFor.${system} "aarch64-linux").hyprland;
hyprland-debug-cross = (pkgsDebugCrossFor.${system} "aarch64-linux").hyprland-debug;
});
devShells = eachSystem (system: {