summaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/qpdf.test
diff options
context:
space:
mode:
Diffstat (limited to 'qpdf/qtest/qpdf.test')
-rw-r--r--qpdf/qtest/qpdf.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test
index d2afff4f..9d279267 100644
--- a/qpdf/qtest/qpdf.test
+++ b/qpdf/qtest/qpdf.test
@@ -736,6 +736,28 @@ $td->runtest("stream with tiff predictor",
show_ntests();
# ----------
+$td->notify("--- Coalesce contents ---");
+$n_tests += 4;
+
+$td->runtest("coalesce contents with qdf",
+ {$td->COMMAND =>
+ "qpdf --qdf --static-id" .
+ " --coalesce-contents coalesce.pdf a.pdf"},
+ {$td->STRING => "", $td->EXIT_STATUS => 0});
+$td->runtest("check output",
+ {$td->FILE => "a.pdf"},
+ {$td->FILE => "coalesce-out.qdf"});
+$td->runtest("coalesce contents without qdf",
+ {$td->COMMAND =>
+ "qpdf --static-id" .
+ " --coalesce-contents coalesce.pdf a.pdf"},
+ {$td->STRING => "", $td->EXIT_STATUS => 0});
+$td->runtest("check output",
+ {$td->FILE => "a.pdf"},
+ {$td->FILE => "coalesce-out.pdf"});
+
+show_ntests();
+# ----------
$td->notify("--- Newline before endstream ---");
$n_tests += 10;