2007-05-20 03:00:21 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
2007-05-20 03:04:24 +02:00
|
|
|
use Test::More tests => 3;
|
2007-05-20 03:00:21 +02:00
|
|
|
|
2007-05-20 03:04:24 +02:00
|
|
|
ok(! system("make ikiwiki.out"));
|
2007-08-21 21:58:14 +02:00
|
|
|
ok(! system("LANG=C perl -T -I. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki -templatedir=templates t/basewiki_brokenlinks t/basewiki_brokenlinks/out"));
|
2007-05-20 03:00:21 +02:00
|
|
|
ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`);
|
|
|
|
system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki");
|