aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-19 13:10:48 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-21 23:44:22 +0200
commitceae9dc1cbd7ed62a0f58c965ed6daa371295967 (patch)
tree6df70ecfee76d263781b2ebdcdfb1bcbbdf65370 /examples/qtest
parentddc6cf0cf6c11bb50f9f576bf547df3674142c97 (diff)
downloadqpdf-ceae9dc1cbd7ed62a0f58c965ed6daa371295967.tar.zst
Enhance pdf-create example
pdf-create now creates images with different color spaces and encoding schemes and verifies them for data correctness.
Diffstat (limited to 'examples/qtest')
-rw-r--r--examples/qtest/create.test9
-rw-r--r--examples/qtest/create/create.out1
-rw-r--r--examples/qtest/create/orange-square.pdfbin1088 -> 0 bytes
3 files changed, 4 insertions, 6 deletions
diff --git a/examples/qtest/create.test b/examples/qtest/create.test
index bcdac25c..f83509e2 100644
--- a/examples/qtest/create.test
+++ b/examples/qtest/create.test
@@ -13,15 +13,12 @@ my $td = new TestDriver('create');
$td->runtest("create a simple PDF",
{$td->COMMAND => "pdf-create a.pdf"},
- {$td->STRING => "", $td->EXIT_STATUS => 0});
-
-$td->runtest("check",
- {$td->FILE => "a.pdf"},
- {$td->FILE => "orange-square.pdf"});
+ {$td->FILE => "create.out", $td->EXIT_STATUS => 0},
+ $td->NORMALIZE_NEWLINES);
cleanup();
-$td->report(2);
+$td->report(1);
sub cleanup
{
diff --git a/examples/qtest/create/create.out b/examples/qtest/create/create.out
new file mode 100644
index 00000000..c9006083
--- /dev/null
+++ b/examples/qtest/create/create.out
@@ -0,0 +1 @@
+all checks passed
diff --git a/examples/qtest/create/orange-square.pdf b/examples/qtest/create/orange-square.pdf
deleted file mode 100644
index 28fb47cd..00000000
--- a/examples/qtest/create/orange-square.pdf
+++ /dev/null
Binary files differ