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/t90cc.log');
21 $img->open(file=>'testimg/scale.ppm') || print "failed: ",$img->{ERRSTR},"\n";
24 print "# Less than 10K colors in image\n" if !defined($img->getcolorcount(maxcolors=>10000));
25 print "# color count: ".$img->getcolorcount()."\n";