Run qpdf from path rather than environment variable in tests

With cmake, we are customizing the path for each test suite so we can
ensure we get the right qpdf without having to use an environment
variable.
This commit is contained in:
Jay Berkenbilt 2022-03-05 08:18:54 -05:00 committed by Jay Berkenbilt
parent 6941923ca9
commit a734af681b
3 changed files with 2 additions and 7 deletions

View File

@ -11,8 +11,6 @@ cleanup();
my $td = new TestDriver('c-objects');
my $qpdf = $ENV{'QPDF_BIN'} or die;
foreach my $i (qw(1 2))
{
$td->runtest("c-objects ($i)",

View File

@ -11,15 +11,13 @@ cleanup();
my $td = new TestDriver('linearize');
my $qpdf = $ENV{'QPDF_BIN'} or die;
$td->runtest("linearize",
{$td->COMMAND => "pdf-linearize input.pdf '' a.pdf"},
{$td->REGEXP => '(?s).*input\.pdf progress: \d+\%.*',
$td->EXIT_STATUS => 0});
$td->runtest("check",
{$td->COMMAND => "$qpdf --check a.pdf"},
{$td->COMMAND => "qpdf --check a.pdf"},
{$td->FILE => "check.out", $td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);

View File

@ -11,7 +11,6 @@ require TestDriver;
my $td = new TestDriver('pdf-mod-info');
my $prg = "pdf-mod-info";
my $qpdf = $ENV{'QPDF_BIN'} or die;
cleanup();
@ -93,7 +92,7 @@ sub run_and_cmp
{$td->STRING => $out,
$td->EXIT_STATUS => 0});
$td->runtest("$dsc output",
{$td->COMMAND => "$qpdf --static-id" .
{$td->COMMAND => "qpdf --static-id" .
" --no-original-object-ids -qdf $fout -"},
{$td->FILE => $fexp,
$td->EXIT_STATUS => 0});