From ceae9dc1cbd7ed62a0f58c965ed6daa371295967 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 19 Aug 2017 07:10:48 -0400 Subject: Enhance pdf-create example pdf-create now creates images with different color spaces and encoding schemes and verifies them for data correctness. --- examples/qtest/create.test | 9 +++------ examples/qtest/create/create.out | 1 + examples/qtest/create/orange-square.pdf | Bin 1088 -> 0 bytes 3 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 examples/qtest/create/create.out delete mode 100644 examples/qtest/create/orange-square.pdf (limited to 'examples/qtest') 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 Binary files a/examples/qtest/create/orange-square.pdf and /dev/null differ -- cgit v1.2.3-54-g00ecf