2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-01 03:12:29 +00:00
qpdf/examples/qtest/create.test

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
464 B
Plaintext
Raw Normal View History

2012-06-23 02:07:58 +00:00
#!/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->FILE => "create.out", $td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
2012-06-23 02:07:58 +00:00
cleanup();
$td->report(1);
2012-06-23 02:07:58 +00:00
sub cleanup
{
unlink "a.pdf";
2019-01-07 17:51:34 +00:00
unlink "tmp.out";
2012-06-23 02:07:58 +00:00
}