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