2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-05 04:47:53 +00:00
qpdf/examples/qtest/filter-tokens.test

30 lines
498 B
Plaintext
Raw Normal View History

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');
cleanup();
2018-02-03 19:52:40 +00:00
$td->runtest("filter tokens",
{$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",
{$td->FILE => "a.pdf"},
{$td->FILE => "out.pdf"});
2018-02-03 19:52:40 +00:00
cleanup();
2018-02-03 19:52:40 +00:00
$td->report(2);
sub cleanup
{
unlink 'a.pdf';
}