blob: 90792958118b83c861668fa8d81c0785f1b099b7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#!/usr/bin/perl
2#
3# Test reading an image which uses BZip compression
4#
5# Contributed by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
6#
7
cristy19615b82011-04-13 20:02:01 +00008BEGIN { $| = 1; $test=1; print "1..2\n"; }
cristy3ed852e2009-09-05 21:47:34 +00009END {print "not ok $test\n" unless $loaded;}
10use Image::Magick;
11$loaded=1;
12
13require 't/subroutines.pl';
14
15chdir 't/bzlib' || die 'Cd failed';
16
17#
18# Test reading BZip compressed MIFF
19#
20testRead( 'input.miff',
21 'a698f2fe0c6c31f83d19554a6ec02bac79c961dd9a87e7ed217752e75eb615d7' );
cristy19615b82011-04-13 20:02:01 +000022
23#
24# 2) Test reading BZip stream-compressed MIFF (.bz2 extension)
25#
26print("Reading BZip stream-compressed MIFF (.bz2 extension) ...\n");
27++$test;
28testRead( 'input.miff.bz2',
29 'a698f2fe0c6c31f83d19554a6ec02bac79c961dd9a87e7ed217752e75eb615d7' );
30