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",
|
2019-02-02 01:35:15 +00:00
|
|
|
{$td->COMMAND => "pdf-create a.pdf"},
|
|
|
|
{$td->FILE => "create.out", $td->EXIT_STATUS => 0},
|
2017-08-19 11:10:48 +00:00
|
|
|
$td->NORMALIZE_NEWLINES);
|
2012-06-23 02:07:58 +00:00
|
|
|
|
|
|
|
cleanup();
|
|
|
|
|
2017-08-19 11:10:48 +00:00
|
|
|
$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
|
|
|
}
|