mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-15 17:17:08 +00:00
30 lines
470 B
Perl
30 lines
470 B
Perl
#!/usr/bin/env perl
|
|
require 5.008;
|
|
BEGIN { $^W = 1; }
|
|
use strict;
|
|
|
|
chdir("filter-tokens");
|
|
|
|
require TestDriver;
|
|
|
|
my $td = new TestDriver('pdf-filter-tokens');
|
|
|
|
cleanup();
|
|
|
|
$td->runtest("filter tokens",
|
|
{$td->COMMAND => "pdf-filter-tokens in.pdf a.pdf"},
|
|
{$td->STRING => "", $td->EXIT_STATUS => 0});
|
|
|
|
$td->runtest("check output",
|
|
{$td->FILE => "a.pdf"},
|
|
{$td->FILE => "out.pdf"});
|
|
|
|
cleanup();
|
|
|
|
$td->report(2);
|
|
|
|
sub cleanup
|
|
{
|
|
unlink 'a.pdf';
|
|
}
|