aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/pclm.test
diff options
context:
space:
mode:
Diffstat (limited to 'qpdf/qtest/pclm.test')
-rw-r--r--qpdf/qtest/pclm.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/qpdf/qtest/pclm.test b/qpdf/qtest/pclm.test
new file mode 100644
index 00000000..252bad35
--- /dev/null
+++ b/qpdf/qtest/pclm.test
@@ -0,0 +1,28 @@
+#!/usr/bin/env perl
+require 5.008;
+use warnings;
+use strict;
+
+unshift(@INC, '.');
+require qpdf_test_helpers;
+
+chdir("qpdf") or die "chdir testdir failed: $!\n";
+
+require TestDriver;
+
+cleanup();
+
+my $td = new TestDriver('pclm');
+
+my $n_tests = 2;
+
+$td->runtest("write as PCLm",
+ {$td->COMMAND => "test_driver 40 pclm-in.pdf a.pdf"},
+ {$td->STRING => "test 40 done\n", $td->EXIT_STATUS => 0},
+ $td->NORMALIZE_NEWLINES);
+$td->runtest("check output",
+ {$td->FILE => "a.pdf"},
+ {$td->FILE => "pclm-out.pdf"});
+
+cleanup();
+$td->report($n_tests);