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