blob: 7062c06442407b3e0ac236c25d839c1b2f26504c [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',
cristy11165b72011-09-28 17:26:49 +000021 '6a4a257921582768b774aeeac549b7c0c0b51f665395eddf921cce53a0ad2a33' );
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',
cristy11165b72011-09-28 17:26:49 +000029 '6a4a257921582768b774aeeac549b7c0c0b51f665395eddf921cce53a0ad2a33' );
cristy19615b82011-04-13 20:02:01 +000030