Add rudimentary tests of my profile hacks
This commit is contained in:
parent
ce63f7f54a
commit
55f23cbfcf
2 changed files with 10 additions and 6 deletions
|
|
@ -77,9 +77,9 @@ in {
|
||||||
doomDir = ./doomdir;
|
doomDir = ./doomdir;
|
||||||
profileName = "";
|
profileName = "";
|
||||||
};
|
};
|
||||||
interactive = doomTest "minimal" { config = [ "default" ]; } { };
|
interactive = doomTest "nix-profile" { config = [ "default" ]; } { };
|
||||||
interactive-without-loader = doomTest "minimal" { config = [ "default" ]; } { profileName = ""; };
|
interactive-without-loader = doomTest "no-profile" { config = [ "default" ]; } { profileName = ""; };
|
||||||
interactive-no-profile-hack = doomTest "minimal" { config = [ "default" ]; } { noProfileHack = true; };
|
interactive-no-profile-hack = doomTest "no-profile" { config = [ "default" ]; } { noProfileHack = true; };
|
||||||
|
|
||||||
org-re-reveal = doomTest "org-re-reveal" { lang = [ [ "org" "+present" ] ]; } { };
|
org-re-reveal = doomTest "org-re-reveal" { lang = [ [ "org" "+present" ] ]; } { };
|
||||||
|
|
||||||
|
|
|
||||||
10
tests.el
10
tests.el
|
|
@ -19,9 +19,13 @@
|
||||||
;; This tries to hook into startup as late as possible, write a sign of life
|
;; This tries to hook into startup as late as possible, write a sign of life
|
||||||
;; (currently a string written to $out), and then exits.
|
;; (currently a string written to $out), and then exits.
|
||||||
|
|
||||||
(defun test-minimal ()
|
(defun test-no-profile ()
|
||||||
;; The minimal test is a noop.
|
(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 ()
|
(defun test-external-org ()
|
||||||
"Test org can be loaded and it's not built-in."
|
"Test org can be loaded and it's not built-in."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue