From ae62fd8ad8347e6bb5b615057f39f33d595a1c47 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 11 Jul 2025 23:50:40 -0500 Subject: [PATCH] tests/zsh: add zprof test Signed-off-by: Austin Horstman --- tests/modules/programs/zsh/default.nix | 1 + tests/modules/programs/zsh/zprof.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/modules/programs/zsh/zprof.nix diff --git a/tests/modules/programs/zsh/default.nix b/tests/modules/programs/zsh/default.nix index 072c87271..94c88f0e5 100644 --- a/tests/modules/programs/zsh/default.nix +++ b/tests/modules/programs/zsh/default.nix @@ -9,6 +9,7 @@ zsh-history-substring-search = ./history-substring-search.nix; zsh-plugins = ./plugins.nix; zsh-prezto = ./prezto.nix; + zsh-zprof = ./zprof.nix; zsh-session-variables = ./session-variables.nix; zsh-syntax-highlighting = ./syntax-highlighting.nix; zshrc-contents-priorities = ./zshrc-content-priorities.nix; diff --git a/tests/modules/programs/zsh/zprof.nix b/tests/modules/programs/zsh/zprof.nix new file mode 100644 index 000000000..16841a8ba --- /dev/null +++ b/tests/modules/programs/zsh/zprof.nix @@ -0,0 +1,15 @@ +{ + config = { + programs.zsh = { + enable = true; + zprof.enable = true; + }; + + test.stubs.zsh = { }; + + nmt.script = '' + assertFileRegex home-files/.zshrc 'zmodload zsh/zprof' + assertFileRegex home-files/.zshrc '^zprof$' + ''; + }; +}