Commit a734af681b62a8fc49d51c1a78f28ace1e35a513
Committed by
Jay Berkenbilt
1 parent
6941923c
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.
Showing
3 changed files
with
2 additions
and
7 deletions
examples/qtest/c-objects.test
examples/qtest/linearize.test
| ... | ... | @@ -11,15 +11,13 @@ cleanup(); |
| 11 | 11 | |
| 12 | 12 | my $td = new TestDriver('linearize'); |
| 13 | 13 | |
| 14 | -my $qpdf = $ENV{'QPDF_BIN'} or die; | |
| 15 | - | |
| 16 | 14 | $td->runtest("linearize", |
| 17 | 15 | {$td->COMMAND => "pdf-linearize input.pdf '' a.pdf"}, |
| 18 | 16 | {$td->REGEXP => '(?s).*input\.pdf progress: \d+\%.*', |
| 19 | 17 | $td->EXIT_STATUS => 0}); |
| 20 | 18 | |
| 21 | 19 | $td->runtest("check", |
| 22 | - {$td->COMMAND => "$qpdf --check a.pdf"}, | |
| 20 | + {$td->COMMAND => "qpdf --check a.pdf"}, | |
| 23 | 21 | {$td->FILE => "check.out", $td->EXIT_STATUS => 0}, |
| 24 | 22 | $td->NORMALIZE_NEWLINES); |
| 25 | 23 | ... | ... |
examples/qtest/mod-info.test
| ... | ... | @@ -11,7 +11,6 @@ require TestDriver; |
| 11 | 11 | my $td = new TestDriver('pdf-mod-info'); |
| 12 | 12 | |
| 13 | 13 | my $prg = "pdf-mod-info"; |
| 14 | -my $qpdf = $ENV{'QPDF_BIN'} or die; | |
| 15 | 14 | |
| 16 | 15 | cleanup(); |
| 17 | 16 | |
| ... | ... | @@ -93,7 +92,7 @@ sub run_and_cmp |
| 93 | 92 | {$td->STRING => $out, |
| 94 | 93 | $td->EXIT_STATUS => 0}); |
| 95 | 94 | $td->runtest("$dsc output", |
| 96 | - {$td->COMMAND => "$qpdf --static-id" . | |
| 95 | + {$td->COMMAND => "qpdf --static-id" . | |
| 97 | 96 | " --no-original-object-ids -qdf $fout -"}, |
| 98 | 97 | {$td->FILE => $fexp, |
| 99 | 98 | $td->EXIT_STATUS => 0}); | ... | ... |