Add rudimentary tests of my profile hacks

This commit is contained in:
Marien Zwart 2024-06-03 22:16:43 +10:00
parent ce63f7f54a
commit 55f23cbfcf
No known key found for this signature in database
2 changed files with 10 additions and 6 deletions

View file

@ -77,9 +77,9 @@ in {
doomDir = ./doomdir;
profileName = "";
};
interactive = doomTest "minimal" { config = [ "default" ]; } { };
interactive-without-loader = doomTest "minimal" { config = [ "default" ]; } { profileName = ""; };
interactive-no-profile-hack = doomTest "minimal" { config = [ "default" ]; } { noProfileHack = true; };
interactive = doomTest "nix-profile" { config = [ "default" ]; } { };
interactive-without-loader = doomTest "no-profile" { config = [ "default" ]; } { profileName = ""; };
interactive-no-profile-hack = doomTest "no-profile" { config = [ "default" ]; } { noProfileHack = true; };
org-re-reveal = doomTest "org-re-reveal" { lang = [ [ "org" "+present" ] ]; } { };

View file

@ -19,9 +19,13 @@
;; This tries to hook into startup as late as possible, write a sign of life
;; (currently a string written to $out), and then exits.
(defun test-minimal ()
;; The minimal test is a noop.
)
(defun test-no-profile ()
(when doom-profile
(error "doom-profile should be unset, is %s" doom-profile)))
(defun test-nix-profile ()
(unless (and doom-profile (equal (car doom-profile) "nix"))
(error "non-nix doom-profile %s" doom-profile)))
(defun test-external-org ()
"Test org can be loaded and it's not built-in."