Debian Codegraph @

PerlMagick/t/zlib/read.t

raw
1 #!/usr/bin/perl
2 #
3 # Test reading an image which uses Zip compression
4 #
5 # Contributed by Bob Friesenhahn <[email protected]>
6 #
7
8 BEGIN { $| = 1; $test=1; print "1..2\n"; }
9 END {print "not ok $test\n" unless $loaded;}
10 use Image::Magick;
11 $loaded=1;
12
13 use Cwd;
14 use lib cwd;
15 require 't/subroutines.pl';
16
17 chdir 't/zlib' || die 'Cd failed';
18
19 #
20 # 1) Test reading Zip compressed MIFF
21 #
22 testRead( 'input.miff',
23 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
24
25 #
26 # 3) Test reading Zip stream-compressed MIFF (.gz extension)
27 #
28 print("Reading Zip stream-compressed MIFF (.gz extension) ...\n");
29 ++$test;
30 testRead( 'input.miff.gz',
31 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );