aboutsummaryrefslogtreecommitdiff
path: root/t/basewiki_brokenlinks.t
blob: d7ff58da926f4a4e3f6bc2292d2ae313a2dfa927 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use warnings;
use strict;
use Test::More tests => 3;

ok(! system("make ikiwiki.out"));
ok(! system("perl -T -I. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki -templatedir=templates t/basewiki_brokenlinks t/basewiki_brokenlinks/out"));
ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`);
system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki");