Home | History | Annotate | Download | only in hdf
      1 #!/usr/bin/perl
      2 #
      3 # Test writing HDF images
      4 #
      5 # Contributed by Bob Friesenhahn <bfriesen (at] simple.dallas.tx.us>
      6 #
      7 BEGIN { $| = 1; $test=1; print "1..2\n"; }
      8 END {print "not ok $test\n" unless $loaded;}
      9 
     10 use Image::Magick;
     11 $loaded=1;
     12 
     13 require 't/subroutines.pl';
     14 
     15 chdir 't/hdf' || die 'Cd failed';
     16 
     17 #
     18 # 1) Test pseudocolor image
     19 #
     20 testReadWrite( 'input_256.hdf',
     21    'output_256.hdf',
     22    q/quality=>54/,
     23    '975cdb03f0fa923936f1cecf7b8a49a917493393a0eb098828ab710295195584' );
     24 
     25 #
     26 # 2) Test truecolor image
     27 #
     28 ++$test;
     29 testReadWrite( 'input_truecolor.hdf',
     30    'output_truecolor.hdf',
     31    q/quality=>55/,
     32    '975cdb03f0fa923936f1cecf7b8a49a917493393a0eb098828ab710295195584' );
     33