Debian Codegraph @

PerlMagick/t/bzlib/read.t

raw
1 #!/usr/bin/perl
2 #
3 # Test reading an image which uses BZip 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 require 't/subroutines.pl';
14
15 chdir 't/bzlib' || die 'Cd failed';
16
17 #
18 # Test reading BZip compressed MIFF
19 #
20 testRead( 'input.miff',
21 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
22
23 #
24 # 2) Test reading BZip stream-compressed MIFF (.bz2 extension)
25 #
26 print("Reading BZip stream-compressed MIFF (.bz2 extension) ...\n");
27 ++$test;
28 testRead( 'input.miff.bz2',
29 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
30