diff options
| author | Mihai Fufezan <mihai@fufexan.net> | 2025-10-14 21:45:11 +0300 |
|---|---|---|
| committer | Mihai Fufezan <mihai@fufexan.net> | 2025-10-29 12:18:29 +0200 |
| commit | 9eb82774e53dc02e4fa204a911cb4256cd21f429 (patch) | |
| tree | 76a0b02ce930db89eead84bf50170c0d097c0a68 /nix/tests | |
| parent | a2f48ea418cd82ab74242563995cf5d5bbcb6b6e (diff) | |
Nix: build hyprtester along with hyprland
Diffstat (limited to 'nix/tests')
| -rw-r--r-- | nix/tests/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nix/tests/default.nix b/nix/tests/default.nix index 5ef0eac8..d7c00061 100644 --- a/nix/tests/default.nix +++ b/nix/tests/default.nix @@ -1,14 +1,12 @@ inputs: pkgs: let flake = inputs.self.packages.${pkgs.stdenv.hostPlatform.system}; - hyprland = flake.hyprland; + hyprland = flake.hyprland-with-hyprtester; in { tests = pkgs.testers.runNixOSTest { name = "hyprland-tests"; nodes.machine = {pkgs, ...}: { environment.systemPackages = with pkgs; [ - flake.hyprtester - # Programs needed for tests jq kitty @@ -38,7 +36,7 @@ in { }; # Test configuration - environment.etc."test.conf".source = "${flake.hyprtester}/share/hypr/test.conf"; + environment.etc."test.conf".source = "${hyprland}/share/hypr/test.conf"; # Disable portals xdg.portal.enable = pkgs.lib.mkForce false; @@ -72,7 +70,7 @@ in { # Run hyprtester testing framework/suite print("Running hyprtester") - exit_status, _out = machine.execute("su - alice -c 'hyprtester -b ${hyprland}/bin/Hyprland -c /etc/test.conf -p ${flake.hyprtester}/lib/hyprtestplugin.so 2>&1 | tee /tmp/testerlog; exit ''${PIPESTATUS[0]}'") + exit_status, _out = machine.execute("su - alice -c 'hyprtester -b ${hyprland}/bin/Hyprland -c /etc/test.conf -p ${hyprland}/lib/hyprtestplugin.so 2>&1 | tee /tmp/testerlog; exit ''${PIPESTATUS[0]}'") print(f"Hyprtester exited with {exit_status}") # Copy logs to host |
