From 43dac390967e2e85da0b3fcd84043a77cfaddfd0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 30 Oct 2026 15:15:04 +0100 Subject: treewide: Align the rest of the files with the server repository --- tests/by-name/nv/nvim-checkhealth/test.desc | 10 --- .../by-name/nv/nvim-checkhealth/test.desc.license | 9 --- tests/by-name/nv/nvim-checkhealth/test.nix | 55 ---------------- tests/by-name/nv/nvim-neorg/data/index.norg | 16 ----- .../by-name/nv/nvim-neorg/data/index.norg.license | 9 --- tests/by-name/nv/nvim-neorg/data/reference.norg | 11 ---- .../nv/nvim-neorg/data/reference.norg.license | 9 --- tests/by-name/nv/nvim-neorg/test.desc | 73 ---------------------- tests/by-name/nv/nvim-neorg/test.desc.license | 9 --- tests/by-name/nv/nvim-neorg/test.nix | 55 ---------------- 10 files changed, 256 deletions(-) delete mode 100644 tests/by-name/nv/nvim-checkhealth/test.desc delete mode 100644 tests/by-name/nv/nvim-checkhealth/test.desc.license delete mode 100644 tests/by-name/nv/nvim-checkhealth/test.nix delete mode 100644 tests/by-name/nv/nvim-neorg/data/index.norg delete mode 100644 tests/by-name/nv/nvim-neorg/data/index.norg.license delete mode 100644 tests/by-name/nv/nvim-neorg/data/reference.norg delete mode 100644 tests/by-name/nv/nvim-neorg/data/reference.norg.license delete mode 100644 tests/by-name/nv/nvim-neorg/test.desc delete mode 100644 tests/by-name/nv/nvim-neorg/test.desc.license delete mode 100644 tests/by-name/nv/nvim-neorg/test.nix (limited to 'tests/by-name/nv') diff --git a/tests/by-name/nv/nvim-checkhealth/test.desc b/tests/by-name/nv/nvim-checkhealth/test.desc deleted file mode 100644 index 169cf49f..00000000 --- a/tests/by-name/nv/nvim-checkhealth/test.desc +++ /dev/null @@ -1,10 +0,0 @@ -# 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/by-name/nv/nvim-checkhealth/test.desc.license b/tests/by-name/nv/nvim-checkhealth/test.desc.license deleted file mode 100644 index eae6a84c..00000000 --- a/tests/by-name/nv/nvim-checkhealth/test.desc.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -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 . diff --git a/tests/by-name/nv/nvim-checkhealth/test.nix b/tests/by-name/nv/nvim-checkhealth/test.nix deleted file mode 100644 index cb04e758..00000000 --- a/tests/by-name/nv/nvim-checkhealth/test.nix +++ /dev/null @@ -1,55 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz -# 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 . -{ - 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; -} diff --git a/tests/by-name/nv/nvim-neorg/data/index.norg b/tests/by-name/nv/nvim-neorg/data/index.norg deleted file mode 100644 index 4d643019..00000000 --- a/tests/by-name/nv/nvim-neorg/data/index.norg +++ /dev/null @@ -1,16 +0,0 @@ -@document.meta -title: index -description: -authors: soispha -categories: -created: 2023-08-29 -updated: 2023-08-29 -version: 1.1.1 -@end - -* First heading -- {* Second heading}[Second] - - -* Second heading --- {:./reference.norg:}[References] diff --git a/tests/by-name/nv/nvim-neorg/data/index.norg.license b/tests/by-name/nv/nvim-neorg/data/index.norg.license deleted file mode 100644 index eae6a84c..00000000 --- a/tests/by-name/nv/nvim-neorg/data/index.norg.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -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 . diff --git a/tests/by-name/nv/nvim-neorg/data/reference.norg b/tests/by-name/nv/nvim-neorg/data/reference.norg deleted file mode 100644 index b572a469..00000000 --- a/tests/by-name/nv/nvim-neorg/data/reference.norg +++ /dev/null @@ -1,11 +0,0 @@ -@document.meta -title: references -description: -authors: soispha -categories: -created: 2023-08-29 -updated: 2023-08-29 -version: 1.1.1 -@end - -* Some other content diff --git a/tests/by-name/nv/nvim-neorg/data/reference.norg.license b/tests/by-name/nv/nvim-neorg/data/reference.norg.license deleted file mode 100644 index eae6a84c..00000000 --- a/tests/by-name/nv/nvim-neorg/data/reference.norg.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -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 . diff --git a/tests/by-name/nv/nvim-neorg/test.desc b/tests/by-name/nv/nvim-neorg/test.desc deleted file mode 100644 index bd1e8f49..00000000 --- a/tests/by-name/nv/nvim-neorg/test.desc +++ /dev/null @@ -1,73 +0,0 @@ -Type nvim -Sleep 3 -Type Enter -Sleep 9 -# Remove the spellfile download prompt -Type C-c -ExpectNot Warning: Cannot find word list -Expect Nvim is open source and freely distributable - -Type :NeorgStart -Sleep 1.5 -Type Enter -Sleep 4 - -Type :Neorg workspace general -Sleep 1.5 -Type Enter -Sleep 4 - - -Type 10t -Sleep 0.5 - -# Cursor is on the first heading -Type iMARKER -Sleep 0.5 -Type Escape -Sleep 2 -Expect ^11\s*MARKER◉ First heading$ - -# Now moves to the link to the second -Type t -Sleep 0.2 -Type $ -Sleep 0.2 -Type h -Sleep 0.2 -Type Enter -Sleep 0.5 - -# Should be on the second -Type iMARKER -Sleep 0.5 -Type Escape -Sleep 2 -Expect ^15\s*◉ MARKERSecond heading$ - -# Moves to the references file -Type t -Sleep 0.2 -Type $ -Sleep 0.2 -Type h -Sleep 0.2 -Type Enter -Sleep 0.5 - -# Skip another spell file prompt -Type Enter -Sleep 0.5 - - -Type 10t -Sleep 1.0 - -Expect ^11\s*◉ Some other content$ - -Type :q! -Sleep 0.5 -Type Enter -Sleep 1 - -# vim: ft=tape diff --git a/tests/by-name/nv/nvim-neorg/test.desc.license b/tests/by-name/nv/nvim-neorg/test.desc.license deleted file mode 100644 index eae6a84c..00000000 --- a/tests/by-name/nv/nvim-neorg/test.desc.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -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 . diff --git a/tests/by-name/nv/nvim-neorg/test.nix b/tests/by-name/nv/nvim-neorg/test.nix deleted file mode 100644 index 9f160df5..00000000 --- a/tests/by-name/nv/nvim-neorg/test.nix +++ /dev/null @@ -1,55 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz -# 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 . -{ - mkTest, - extraModules, - pkgs, - ... -}: -mkTest { - name = "nvim-neorg"; - - 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 = { - imports = [ - extraModules.nixvim.homeManagerModule - ]; - }; - }; - }; - - alternateScreen = false; - - testData = { - "/home/soispha/repos/notes/general/index.norg" = ./data/index.norg; - "/home/soispha/repos/notes/general/reference.norg" = ./data/reference.norg; - }; - - description = ./test.desc; - - # The golden file is just full of nvim's terminal control sequences. There is no point - # in trying to check it. - hash = null; -} -- cgit v1.3.1