summaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/qpdf.test
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-12-27 17:26:06 +0100
committerJay Berkenbilt <ejb@ql.org>2012-12-27 17:26:06 +0100
commit35873031a723e2f04a17c9fce196614bb71278b9 (patch)
treef589ba21d7ba2eaaa3ea681c6f9c8383072ba758 /qpdf/qtest/qpdf.test
parentb4e7d6ed32c821ff51ddf4debe691ac06a3938ed (diff)
downloadqpdf-35873031a723e2f04a17c9fce196614bb71278b9.tar.zst
Uncompress stream data for some linearization tests
For linearization tests where we are actually comparing the exact output of the test with a known file, uncompress stream data so we can see what's there. This makes looking at future changes a little easier.
Diffstat (limited to 'qpdf/qtest/qpdf.test')
-rw-r--r--qpdf/qtest/qpdf.test12
1 files changed, 9 insertions, 3 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test
index 35645466..e06ac221 100644
--- a/qpdf/qtest/qpdf.test
+++ b/qpdf/qtest/qpdf.test
@@ -1136,9 +1136,15 @@ foreach my $base (@to_linearize)
foreach my $omode (qw(disable preserve generate))
{
my $oarg = "-object-streams=$omode";
+ my $sdarg = "";
+ if (($base eq 'lin-special') || ($base eq 'object-stream'))
+ {
+ $sdarg = "--stream-data=uncompress";
+ }
$td->runtest("linearize $base ($omode)",
{$td->COMMAND =>
- "qpdf -linearize $oarg --static-id $base.pdf a.pdf"},
+ "qpdf -linearize $oarg $sdarg" .
+ " --static-id $base.pdf a.pdf"},
{$td->STRING => "",
$td->EXIT_STATUS => 0});
$td->runtest("check linearization",
@@ -1155,12 +1161,12 @@ foreach my $base (@to_linearize)
# the table values.
$td->runtest("relinearize $base 1",
{$td->COMMAND =>
- "qpdf -linearize --static-id a.pdf b.pdf"},
+ "qpdf -linearize $sdarg --static-id a.pdf b.pdf"},
{$td->STRING => "",
$td->EXIT_STATUS => 0});
$td->runtest("relinearize $base 2",
{$td->COMMAND =>
- "qpdf -linearize --static-id b.pdf c.pdf"},
+ "qpdf -linearize $sdarg --static-id b.pdf c.pdf"},
{$td->STRING => "",
$td->EXIT_STATUS => 0});
$td->runtest("compare files ($omode)",