Test with a generated init.el with all modules
...not yet with all flags, but that's the next step. This surfaced several problems not caught by the existing "full" build, because that did not enable dependencies conditionally enabled if a second module is enabled. There are a small number of dependencies only enabled if a second module is *not* enabled, which I intend to add some manual tests for.
This commit is contained in:
parent
a4338aad5c
commit
3f2a482afd
3 changed files with 61 additions and 5 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
{
|
||||
emacs29,
|
||||
emptyDirectory,
|
||||
lib,
|
||||
linkFarm,
|
||||
runCommand,
|
||||
|
|
@ -36,6 +37,7 @@ let
|
|||
mkDoom = args: (makeDoomPackages (common // args)).doomEmacs;
|
||||
mkDoomDir = args: writeTextDir "init.el" (toInit args);
|
||||
minimalDoomDir = mkDoomDir { config = [ "default" ]; };
|
||||
fullDoomDir = (makeDoomPackages (common // { doomDir = emptyDirectory; })).doomDirWithAllPackages;
|
||||
doomTest = name: init: doomArgs: testers.testEqualContents {
|
||||
assertion = "name = ${name}; modules = ${toPretty {} init}; args = ${toPretty {} doomArgs};";
|
||||
expected = writeText "doom-expected" "Doom functions";
|
||||
|
|
@ -64,10 +66,7 @@ in {
|
|||
minimalEmacs = (makeDoomPackages (common // {
|
||||
doomDir = minimalDoomDir;
|
||||
})).emacsWithDoom;
|
||||
full = mkDoom {
|
||||
full = true;
|
||||
doomDir = minimalDoomDir;
|
||||
};
|
||||
full = mkDoom { doomDir = fullDoomDir; };
|
||||
example = mkDoom { doomDir = ./doomdirs/example; };
|
||||
example-without-loader = mkDoom {
|
||||
doomDir = ./doomdirs/example;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue