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