1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl test.pl'
4 ######################### We start with some black magic to print on failure.
6 # Change 1..1 below to 1..last_test_to_print .
7 # (It may become useful if the test is moved to ./t subdirectory.)
10 BEGIN { $| = 1; print "1..3\n"; }
11 END {print "not ok 1\n" unless $loaded;}
18 Imager::init('log'=>'testout/t70newgif.log');
20 $green=i_color_new(0,255,0,0);
21 $blue=i_color_new(0,0,255,0);
24 $img->open(file=>'testimg/scale.ppm',type=>'pnm') || print "failed: ",$img->{ERRSTR},"\n";
28 $img->write(file=>'testout/t70newgif.gif',type=>'gif',gifplanes=>1,gifquant=>'lm',lmfixed=>[$green,$blue]) || print "failed: ",$img->{ERRSTR},"\n";