aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qtest
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtest')
-rw-r--r--examples/qtest/overlay-page.test28
-rw-r--r--examples/qtest/overlay-page/in.pdfbin0 -> 1840 bytes
-rw-r--r--examples/qtest/overlay-page/out.pdfbin0 -> 3361 bytes
-rw-r--r--examples/qtest/overlay-page/stamp.pdfbin0 -> 799 bytes
4 files changed, 28 insertions, 0 deletions
diff --git a/examples/qtest/overlay-page.test b/examples/qtest/overlay-page.test
new file mode 100644
index 00000000..68e695d3
--- /dev/null
+++ b/examples/qtest/overlay-page.test
@@ -0,0 +1,28 @@
+#!/usr/bin/env perl
+require 5.008;
+use warnings;
+use strict;
+
+chdir("overlay-page");
+
+require TestDriver;
+
+my $td = new TestDriver('overlay-page');
+
+cleanup();
+
+$td->runtest("overlay-page",
+ {$td->COMMAND => "pdf-overlay-page in.pdf stamp.pdf a.pdf"},
+ {$td->STRING => "", $td->EXIT_STATUS => 0});
+$td->runtest("compare files",
+ {$td->FILE => "a.pdf"},
+ {$td->FILE => "out.pdf"});
+
+cleanup();
+
+$td->report(2);
+
+sub cleanup
+{
+ unlink("a.pdf");
+}
diff --git a/examples/qtest/overlay-page/in.pdf b/examples/qtest/overlay-page/in.pdf
new file mode 100644
index 00000000..f94c739a
--- /dev/null
+++ b/examples/qtest/overlay-page/in.pdf
Binary files differ
diff --git a/examples/qtest/overlay-page/out.pdf b/examples/qtest/overlay-page/out.pdf
new file mode 100644
index 00000000..b589d2c4
--- /dev/null
+++ b/examples/qtest/overlay-page/out.pdf
Binary files differ
diff --git a/examples/qtest/overlay-page/stamp.pdf b/examples/qtest/overlay-page/stamp.pdf
new file mode 100644
index 00000000..a86f4344
--- /dev/null
+++ b/examples/qtest/overlay-page/stamp.pdf
Binary files differ