summaryrefslogtreecommitdiff
path: root/t/html.t
blob: 3faf44154203aaa88a0bef7e1ad152311497747b (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More;
  5. my @pages;
  6. BEGIN {
  7. @pages=qw(index features news plugins/map security);
  8. if (! -x "/usr/bin/validate") {
  9. plan skip_all => "/usr/bin/validate html validator not present";
  10. }
  11. else {
  12. plan(tests => int @pages + 2);
  13. }
  14. use_ok("IkiWiki");
  15. }
  16. # Have to build the html pages first.
  17. # Note that just building them like this doesn't exersise all the possible
  18. # html that can be generated, in particular it misses some of the action
  19. # links at the top, etc.
  20. ok(system("make >/dev/null") == 0);
  21. foreach my $page (@pages) {
  22. print "# Validating $page\n";
  23. ok(system("validate html/$page.html") == 0);
  24. }
  25. # TODO: validate form output html
02/8d/CAKZ-WGeXuXYOafi%3dXhaFHsx2hzU0ODrXNVVWuA-E3LDQcm+SbQ@mail.gmail.com/semweb?id=fd54908da2b05c526dd3bee9b6dcd093214a220d'>patch) treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/02/8d/CAKZ-WGeXuXYOafi=XhaFHsx2hzU0ODrXNVVWuA-E3LDQcm+SbQ@mail.gmail.com/semweb parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
master
Diffstat (limited to 'tags/02/8d/CAKZ-WGeXuXYOafi=XhaFHsx2hzU0ODrXNVVWuA-E3LDQcm+SbQ@mail.gmail.com/semweb')