add fmarier's repo
[ikiwiki.git] / t / permalink.t
blob81d4d18206e860f672f7689222ef45c526dcc0a5
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More 'no_plan';
6 ok(! system("mkdir t/tmp"));
7 ok(! system("make -s ikiwiki.out"));
8 ok(! system("perl -I. ./ikiwiki.out -plugin inline -url=http://example.com -cgiurl=http://example.com/ikiwiki.cgi -rss -atom -underlaydir=underlays/basewiki -set underlaydirbase=underlays -templatedir=templates t/tinyblog t/tmp/out"));
9 # This guid should never, ever change, for any reason whatsoever!
10 my $guid="http://example.com/post/";
11 ok(length `egrep '<guid.*>$guid</guid>' t/tmp/out/index.rss`);
12 ok(length `egrep '<id>$guid</id>' t/tmp/out/index.atom`);
13 ok(! system("rm -rf t/tmp t/tinyblog/.ikiwiki"));