dynfilt/mandelbrot.c
dynfilt/mandelbrot.exp
dynfilt/pluginst.h
-dynfilt/t/t00dummy.t Dummy test script to prevent smoker problems
+dynfilt/t/t60dyntest.t Simple test script
errep.perl
error.c
ext.h
rubthrough 4 on 4
-replace dummy test script in dynfilt with a real one
+replace dummy test script in dynfilt with a real one (done)
BEFORE 0.50:
+++ /dev/null
-#!perl -w
-use strict;
-use lib '../t';
-use Test::More tests => 1;
-# some smoke testers have been confused because there are no tests
-# in this directory
-pass("Dummy test");
--- /dev/null
+#!perl -w
+use strict;
+use lib '../t';
+use Test::More tests => 4;
+BEGIN { use_ok(Imager => qw(:default)); }
+use Config;
+
+#$Imager::DEBUG=1;
+
+Imager::init('log'=>'../testout/t60dyntest.log');
+
+my $img=Imager->new() || die "unable to create image object\n";
+
+$img->read(file=>'../testout/t104.ppm',type=>'pnm')
+ || die "failed: ",$img->{ERRSTR},"\n";
+
+my $plug='./dyntest.'.$Config{'so'};
+ok(load_plugin($plug), "load plugin")
+ || die "unable to load plugin: $Imager::ERRSTR\n";
+
+my %hsh=(a=>35,b=>200,type=>'lin_stretch');
+ok($img->filter(%hsh), "call filter");
+
+$img->write(type=>'pnm',file=>'../testout/t60.ppm')
+ || die "error in write()\n";
+
+ok(unload_plugin($plug), "unload plugin")
+ || die "unable to unload plugin: $Imager::ERRSTR\n";
+
+
+
+++ /dev/null
-BEGIN { $| = 1; print "1..3\n"; }
-END {print "not ok 1\n" unless $loaded;}
-use Imager qw(:default);
-use Config;
-$loaded = 1;
-
-#$Imager::DEBUG=1;
-
-Imager::init('log'=>'testout/t60dyntest.log');
-
-$img=Imager->new() || die "unable to create image object\n";
-
-$img->open(file=>'testout/t104.ppm',type=>'pnm') || die "failed: ",$img->{ERRSTR},"\n";
-
-$plug='dynfilt/dyntest.'.$Config{'so'};
-load_plugin($plug) || die "unable to load plugin:\n$Imager::ERRSTR\n";
-
-print "ok\nok\n"; # exit;
-
-%hsh=(a=>35,b=>200,type=>lin_stretch);
-$img->filter(%hsh);
-
-$img->write(type=>'pnm',file=>'testout/t60.ppm') || die "error in write()\n";
-
-unload_plugin($plug) || die "unable to unload plugin: $Imager::ERRSTR\n";
-
-print "ok\n";
-
-