mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-19 10:55:10 +00:00
30 lines
478 B
Plaintext
30 lines
478 B
Plaintext
|
#!/usr/bin/env perl
|
||
|
require 5.008;
|
||
|
use warnings;
|
||
|
use strict;
|
||
|
|
||
|
chdir("create") or die "chdir testdir failed: $!\n";
|
||
|
|
||
|
require TestDriver;
|
||
|
|
||
|
cleanup();
|
||
|
|
||
|
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"});
|
||
|
|
||
|
cleanup();
|
||
|
|
||
|
$td->report(2);
|
||
|
|
||
|
sub cleanup
|
||
|
{
|
||
|
unlink "a.pdf";
|
||
|
}
|