aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2017-05-16 11:33:23 +0100
committerSimon McVittie <smcv@debian.org>2017-05-16 12:08:55 +0100
commitafdf8c0a8cd44f3141174337425eea75d67efcef (patch)
tree1d89a5a67d548a76a4635372c4198be0c8c90b0c
parent01f2a843602ad19716db9e17f93c943e0c71cff9 (diff)
downloadikiwiki-afdf8c0a8cd44f3141174337425eea75d67efcef.tar
ikiwiki-afdf8c0a8cd44f3141174337425eea75d67efcef.tar.gz
color, toc: Fix `make test`
-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();