- some sub-directory tests depended on files produced by the parent
[imager.git] / dynfilt / t / t60dyntest.t
CommitLineData
485cab1c
TC
1#!perl -w
2use strict;
3use lib '../t';
4use Test::More tests => 4;
5BEGIN { use_ok(Imager => qw(:default)); }
6use Config;
7
8#$Imager::DEBUG=1;
9
10Imager::init('log'=>'../testout/t60dyntest.log');
11
12my $img=Imager->new() || die "unable to create image object\n";
13
9188b23e 14$img->read(file=>'../testimg/penguin-base.ppm',type=>'pnm')
485cab1c
TC
15 || die "failed: ",$img->{ERRSTR},"\n";
16
17my $plug='./dyntest.'.$Config{'so'};
18ok(load_plugin($plug), "load plugin")
19 || die "unable to load plugin: $Imager::ERRSTR\n";
20
21my %hsh=(a=>35,b=>200,type=>'lin_stretch');
22ok($img->filter(%hsh), "call filter");
23
24$img->write(type=>'pnm',file=>'../testout/t60.ppm')
25 || die "error in write()\n";
26
27ok(unload_plugin($plug), "unload plugin")
28 || die "unable to unload plugin: $Imager::ERRSTR\n";
29
30
31