diff options
author | Simon McVittie <smcv@debian.org> | 2017-05-16 11:33:23 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-05-16 12:08:55 +0100 |
commit | afdf8c0a8cd44f3141174337425eea75d67efcef (patch) | |
tree | 1d89a5a67d548a76a4635372c4198be0c8c90b0c | |
parent | 01f2a843602ad19716db9e17f93c943e0c71cff9 (diff) | |
download | ikiwiki-afdf8c0a8cd44f3141174337425eea75d67efcef.tar ikiwiki-afdf8c0a8cd44f3141174337425eea75d67efcef.tar.gz |
color, toc: Fix `make test`
-rwxr-xr-x | t/color.t | 8 | ||||
-rwxr-xr-x | t/toc.t | 9 |
2 files changed, 17 insertions, 0 deletions
@@ -10,6 +10,14 @@ BEGIN { use_ok("IkiWiki::Render"); } %config=IkiWiki::defaultconfig(); $config{srcdir}=$config{destdir}="/dev/null"; +my $installed = $ENV{INSTALLED_TESTS}; + +unless ($installed) { + $config{templatedir} = "templates"; + $config{underlaydir} = "underlays/basewiki"; + $config{underlaydirbase} = "underlays"; +} + sub render { my $content = shift; $IkiWiki::pagesources{foo} = "foo.mdwn"; @@ -10,6 +10,15 @@ BEGIN { use_ok("IkiWiki::Render"); } %config=IkiWiki::defaultconfig(); $config{srcdir}=$config{destdir}="/dev/null"; $config{add_plugins}=[qw(toc)]; + +my $installed = $ENV{INSTALLED_TESTS}; + +unless ($installed) { + $config{templatedir} = "templates"; + $config{underlaydir} = "underlays/basewiki"; + $config{underlaydirbase} = "underlays"; +} + IkiWiki::loadplugins(); IkiWiki::checkconfig(); |