summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/basewiki_brokenlinks.t9
-rw-r--r--t/basewiki_brokenlinks/index.mdwn1
2 files changed, 10 insertions, 0 deletions
diff --git a/t/basewiki_brokenlinks.t b/t/basewiki_brokenlinks.t
new file mode 100644
index 000000000..929a560de
--- /dev/null
+++ b/t/basewiki_brokenlinks.t
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+use warnings;
+use strict;
+use Test::More tests => 2;
+
+my $ret=system("./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki t/basewiki_brokenlinks t/basewiki_brokenlinks/out");
+ok($ret == 0);
+ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`);
+system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki");
diff --git a/t/basewiki_brokenlinks/index.mdwn b/t/basewiki_brokenlinks/index.mdwn
new file mode 100644
index 000000000..0a6b2c39e
--- /dev/null
+++ b/t/basewiki_brokenlinks/index.mdwn
@@ -0,0 +1 @@
+[[brokenlinks ]]