summaryrefslogtreecommitdiffstats
path: root/tests/old/by-name/nv/nvim-checkhealth
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-30 15:15:04 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-30 15:15:04 +0100
commit43dac390967e2e85da0b3fcd84043a77cfaddfd0 (patch)
tree93f09b804bcded8b59db6f619e18ec4b6265b8c2 /tests/old/by-name/nv/nvim-checkhealth
parenttreewide: Align files with the same files in the `nixos-server` repo (diff)
downloadnixos-config-43dac390967e2e85da0b3fcd84043a77cfaddfd0.zip
treewide: Align the rest of the files with the server repository
Diffstat (limited to 'tests/old/by-name/nv/nvim-checkhealth')
-rw-r--r--tests/old/by-name/nv/nvim-checkhealth/test.desc10
-rw-r--r--tests/old/by-name/nv/nvim-checkhealth/test.desc.license9
-rw-r--r--tests/old/by-name/nv/nvim-checkhealth/test.nix55
3 files changed, 74 insertions, 0 deletions
diff --git a/tests/old/by-name/nv/nvim-checkhealth/test.desc b/tests/old/by-name/nv/nvim-checkhealth/test.desc
new file mode 100644
index 00000000..169cf49f
--- /dev/null
+++ b/tests/old/by-name/nv/nvim-checkhealth/test.desc
@@ -0,0 +1,10 @@
+# We open a `*.norg` file to run the norg ftplugin.
+Exec nvim test.norg --headless "+set nospell" "+checkhealth" "+w! health.log" +q +wa +qa
+
+# The `checkhealth` output is not reproducible.
+# Thus only output the warnings/errors.
+Exec batgrep --ignore-case 'warning|error' health.log > new_golden
+
+SetGolden new_golden
+
+# vim: ft=tape
diff --git a/tests/old/by-name/nv/nvim-checkhealth/test.desc.license b/tests/old/by-name/nv/nvim-checkhealth/test.desc.license
new file mode 100644
index 00000000..eae6a84c
--- /dev/null
+++ b/tests/old/by-name/nv/nvim-checkhealth/test.desc.license
@@ -0,0 +1,9 @@
+nixos-config - My current NixOS configuration
+
+Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+SPDX-License-Identifier: GPL-3.0-or-later
+
+This file is part of my nixos-config.
+
+You should have received a copy of the License along with this program.
+If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
diff --git a/tests/old/by-name/nv/nvim-checkhealth/test.nix b/tests/old/by-name/nv/nvim-checkhealth/test.nix
new file mode 100644
index 00000000..cb04e758
--- /dev/null
+++ b/tests/old/by-name/nv/nvim-checkhealth/test.nix
@@ -0,0 +1,55 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+{
+ mkTest,
+ extraModules,
+ pkgs,
+ ...
+}:
+mkTest {
+ name = "nvim-checkhealth";
+
+ configuration = {
+ imports = [
+ ../../../../modules/by-name/nv/nvim/module.nix
+ ../../../../modules/by-name/ni/nixpkgs/module.nix
+ ];
+ config = {
+ soispha = {
+ nixpkgs = {
+ enable = true;
+ systemName = "x86_64-linux";
+ };
+ programs.nvim = {
+ enable = true;
+ shell = pkgs.zsh;
+ };
+ };
+ home-manager.users.soispha = {
+ home.packages = [
+ pkgs.bat
+ pkgs.ripgrep
+ pkgs.bat-extras.batgrep
+ ];
+ imports = [
+ extraModules.nixvim.homeManagerModule
+ ];
+ };
+ };
+ };
+
+ testData = {};
+
+ description = ./test.desc;
+
+ # FIXME: This is not reproducible, but is also not checked via `Expect`s. As such this
+ # whole test is quite useless, but it might work some day. <2024-11-30>
+ hash = null;
+}