summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-20 01:00:21 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-20 01:00:21 +0000
commitd3d528b5c4e61ade7153df8f3d60cf651c39e5e1 (patch)
tree8143982772996edd2610f1e8250b13cb59d684a5 /t
parentaaabe0ee11ea7082bf86f89b40afb9cf3ab7b2f0 (diff)
* Add a test ensuring that the basewiki is self-contained and has no broken
links.
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 ]]