aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rwxr-xr-xt/color.t8
-rwxr-xr-xt/toc.t9
2 files changed, 17 insertions, 0 deletions
diff --git a/t/color.t b/t/color.t
index dca0d865c..bd353b58e 100755
--- a/t/color.t
+++ b/t/color.t
@@ -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";
diff --git a/t/toc.t b/t/toc.t
index ff8e9f991..dc7377647 100755
--- a/t/toc.t
+++ b/t/toc.t
@@ -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();