summaryrefslogtreecommitdiff
path: root/support/html2latex/HTML/t/tags.t
diff options
context:
space:
mode:
Diffstat (limited to 'support/html2latex/HTML/t/tags.t')
-rwxr-xr-xsupport/html2latex/HTML/t/tags.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/support/html2latex/HTML/t/tags.t b/support/html2latex/HTML/t/tags.t
new file mode 100755
index 0000000000..648e3da0e8
--- /dev/null
+++ b/support/html2latex/HTML/t/tags.t
@@ -0,0 +1,19 @@
+#!/usr/bin/perl -w
+use Latex;
+use strict;
+
+my @files = qw(t/tags);
+my $parser = new HTML::Latex;
+
+print '1..',scalar @files,"\n";
+
+foreach my $file (@files){
+ $parser->set_log("/dev/null");
+
+ my ($htmlfile,$latexfile) = $parser->html2latex("$file.html") or die "Couldn't process $file.html";
+
+ print "not " if (!(-f $latexfile) || `diff $latexfile $file.correct`);
+ print "ok\n";
+}
+
+unlink <*.tex>;