mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-05 08:02:11 +00:00
173b944ef8
This makes it a lot easier to run parts of the test suite.
29 lines
600 B
Perl
29 lines
600 B
Perl
#!/usr/bin/env perl
|
|
require 5.008;
|
|
use warnings;
|
|
use strict;
|
|
|
|
unshift(@INC, '.');
|
|
require qpdf_test_helpers;
|
|
|
|
chdir("qpdf") or die "chdir testdir failed: $!\n";
|
|
|
|
require TestDriver;
|
|
|
|
cleanup();
|
|
|
|
my $td = new TestDriver('pclm');
|
|
|
|
my $n_tests = 2;
|
|
|
|
$td->runtest("write as PCLm",
|
|
{$td->COMMAND => "test_driver 40 pclm-in.pdf a.pdf"},
|
|
{$td->STRING => "test 40 done\n", $td->EXIT_STATUS => 0},
|
|
$td->NORMALIZE_NEWLINES);
|
|
$td->runtest("check output",
|
|
{$td->FILE => "a.pdf"},
|
|
{$td->FILE => "pclm-out.pdf"});
|
|
|
|
cleanup();
|
|
$td->report($n_tests);
|