summaryrefslogtreecommitdiff
path: root/support/html2latex/HTML/t/foreigns.t
blob: 3be49e97e977da1acb1e37efa7e71b5ff9b9f53f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl -w
use Latex;
use strict;

my @files = qw(t/foreigns);
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>;