#!/bin/sh
# Copyright (C) 2004-2013 GraphicsMagick Group
# Test MIFF format with various storage and compression types
. ./common.shi
. ${top_srcdir}/tests/common.shi

# Test program
rwfile=./rwfile

# Storage types we will test
check_types='bilevel gray pallette truecolor'

# Comression types we will test
compress_types='none bzip zip rle'

# Depths we will test
depths='8 16 32'

# Number of tests we plan to run
test_plan_fn 48

for compress in ${compress_types}
do
  for type in ${check_types}
  do
    for depth in ${depths}
    do 
       test_command_fn "MIFF ${compress} ${type}" ${MEMCHECK} ${rwfile} -filespec "out_${type}_${compress}_%d" -compress ${compress} -depth ${depth} "${SRCDIR}/input_${type}.miff" MIFF
    done
  done
done

:
