diff options
Diffstat (limited to 't')
-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(); |