Skip to content
Browse files

made a test target

  • Loading branch information...
1 parent 5c8e356 commit 754f40b43d0f5d276e7b9d70a7611d64d5a311e9 @petdance committed Feb 9, 2010
Showing with 20 additions and 0 deletions.
  1. +3 −0 Makefile
  2. +17 −0 t/html.t
View
3 Makefile
@@ -15,6 +15,9 @@ crank: clean
clean:
rm -fr $(BUILD)
+test:
+ prove t/html.t
+
# This is only useful for Andy
rsync:
rsync -azu -e ssh --delete --verbose \
View
17 t/html.t
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+
+use warnings;
+use strict;
+
+use Test::More;
+use Test::HTML::Lint;
+use File::Slurp;
+
+my @files = glob( 'build/*.html' );
+plan( tests => scalar @files );
+
+for my $filename ( @files ) {
+ my $text = read_file( $filename );
+
+ html_ok( $text, $filename );
+}

0 comments on commit 754f40b

Please sign in to comment.
Something went wrong with that request. Please try again.