From 5b45dcf4790bb94fec7e550d2915fc2540a3cdd6 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 5 Oct 2025 17:04:17 -0500 Subject: [PATCH] tests/hyprshot: add tests Signed-off-by: Austin Horstman --- .../programs/hyprshot/basic-configuration.nix | 13 +++++++++++++ tests/modules/programs/hyprshot/default.nix | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 tests/modules/programs/hyprshot/basic-configuration.nix create mode 100644 tests/modules/programs/hyprshot/default.nix diff --git a/tests/modules/programs/hyprshot/basic-configuration.nix b/tests/modules/programs/hyprshot/basic-configuration.nix new file mode 100644 index 00000000..c0521998 --- /dev/null +++ b/tests/modules/programs/hyprshot/basic-configuration.nix @@ -0,0 +1,13 @@ +{ + config = { + programs.hyprshot = { + enable = true; + saveLocation = "dummy"; + }; + + nmt.script = '' + assertFileContains home-path/etc/profile.d/hm-session-vars.sh \ + 'export HYPRSHOT_DIR="dummy"' + ''; + }; +} diff --git a/tests/modules/programs/hyprshot/default.nix b/tests/modules/programs/hyprshot/default.nix new file mode 100644 index 00000000..8d043afb --- /dev/null +++ b/tests/modules/programs/hyprshot/default.nix @@ -0,0 +1,5 @@ +{ lib, pkgs, ... }: + +lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux { + hyprshot-basic-configuration = ./basic-configuration.nix; +}