summaryrefslogtreecommitdiff
path: root/t/permalink.t
blob: c326e8d278e4f025a8623512ab06d57a6ad5565c (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 -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"));