From 9eb82774e53dc02e4fa204a911cb4256cd21f429 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Tue, 14 Oct 2025 21:45:11 +0300 Subject: Nix: build hyprtester along with hyprland --- nix/tests/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nix/tests') 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 -- cgit v1.2.3