#!/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);
