2022-05-14 20:16:20 +00:00
|
|
|
#!/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();
|
|
|
|
|
2022-05-19 21:27:41 +00:00
|
|
|
my $td = new TestDriver('token-filters');
|
2022-05-14 20:16:20 +00:00
|
|
|
|
|
|
|
my $n_tests = 2;
|
|
|
|
|
|
|
|
$td->runtest("token filter",
|
|
|
|
{$td->COMMAND => "test_driver 41 coalesce.pdf"},
|
|
|
|
{$td->STRING => "test 41 done\n", $td->EXIT_STATUS => 0},
|
|
|
|
$td->NORMALIZE_NEWLINES);
|
|
|
|
$td->runtest("check output",
|
|
|
|
{$td->FILE => "a.pdf"},
|
|
|
|
{$td->FILE => "token-filters-out.pdf"});
|
|
|
|
|
|
|
|
cleanup();
|
|
|
|
$td->report($n_tests);
|