2018-02-03 19:52:40 +00:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
require 5.008;
|
|
|
|
BEGIN { $^W = 1; }
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
chdir("filter-tokens");
|
|
|
|
|
|
|
|
require TestDriver;
|
|
|
|
|
|
|
|
my $td = new TestDriver('pdf-filter-tokens');
|
|
|
|
|
2021-02-23 15:04:56 +00:00
|
|
|
cleanup();
|
|
|
|
|
2018-02-03 19:52:40 +00:00
|
|
|
$td->runtest("filter tokens",
|
2022-02-08 14:18:08 +00:00
|
|
|
{$td->COMMAND => "pdf-filter-tokens in.pdf a.pdf"},
|
|
|
|
{$td->STRING => "", $td->EXIT_STATUS => 0});
|
2018-02-03 19:52:40 +00:00
|
|
|
|
|
|
|
$td->runtest("check output",
|
2022-02-08 14:18:08 +00:00
|
|
|
{$td->FILE => "a.pdf"},
|
|
|
|
{$td->FILE => "out.pdf"});
|
2018-02-03 19:52:40 +00:00
|
|
|
|
2021-02-23 15:04:56 +00:00
|
|
|
cleanup();
|
|
|
|
|
2018-02-03 19:52:40 +00:00
|
|
|
$td->report(2);
|
2021-02-23 15:04:56 +00:00
|
|
|
|
|
|
|
sub cleanup
|
|
|
|
{
|
|
|
|
unlink 'a.pdf';
|
|
|
|
}
|