Subject: | Driver don't verify for pdflatex for generating pdf from source |
Date: | Fri, 18 Sep 2015 17:10:53 -0300 |
To: | bug-LaTeX-Driver [...] rt.cpan.org |
From: | Marco <marco.prado.bs [...] gmail.com> |
Hello,
LaTeX::Driver version 0.200.4 when trying this test case
use Test::More;
require_ok('LaTeX::Driver');
my $doc_test = <<EOT;
[% USE Latex %]
\\documentclass{article}
\\begin{document}
\\section{Testing}
Nothing here.
\\end{document}
EOT
my $output;
my $drv = LaTeX::Driver->new(
source => \$doc_text,
output => \$output,
format => 'pdf',
);
ok( $drv->run , "ran ok");
done_testing();
I got the following error:
t/t0001.pl ..
ok 1 - require LaTeX::Driver;
Use of uninitialized value in syswrite at
/usr/local/share/perl/5.14.2/File/Slurp.pm line 506.
Use of uninitialized value $size_left in syswrite at
/usr/local/share/perl/5.14.2/File/Slurp.pm line 506.
Can't exec "xelatex": No such file or directory at
/usr/local/share/perl/5.14.2/LaTeX/Driver.pm line 683.
xelatex exited with errors:
failed to open /tmp/latexdrv20063_0/latexdoc.log for input# Tests were
run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 1.
Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
Test Summary Report
-------------------
t/t0001.pl (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.05
cusr 0.01 csys = 0.09 CPU)
Result: FAIL
--
Marco Arthur @ (M)arco Creatives