summaryrefslogtreecommitdiff
path: root/t/permalink.t
blob: 9b44cd72eea38b221bd446764f5f5aa38c3fa9ec (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More 'no_plan';
  5. ok(! system("mkdir t/tmp"));
  6. ok(! system("make -s ikiwiki.out"));
  7. ok(! system("LC_ALL=C perl -T -I. ./ikiwiki.out -plugin inline -url=http://example.com -cgiurl=http://example.com/ikiwiki.cgi -rss -atom -underlaydir=underlays/basewiki -templatedir=templates t/tinyblog t/tmp/out"));
  8. # This guid should never, ever change, for any reason whatsoever!
  9. my $guid="http://example.com/post/";
  10. ok(length `grep '<guid>$guid</guid>' t/tmp/out/index.rss`);
  11. ok(length `grep '<id>$guid</id>' t/tmp/out/index.atom`);
  12. ok(! system("rm -rf t/tmp t/tinyblog/.ikiwiki"));