#!/bin/sh
#
# Copyright 2004 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
#
# Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization
# dedicated to making software imaging solutions freely available.
#
# This file is part of Magick++, the C++ API for ImageMagick and
# ImageMagick.  Please see the file "COPYING" included with Magick++
# for usage and copying restrictions.
#
subdir=Magick++/demo
. ./common.shi
echo "1..24"

SRCDIR=${top_srcdir}/${subdir}/
export SRCDIR

cd ${subdir} || exit 1

./analyze "$SRCDIR/model.miff" && echo "ok" || echo "not ok"

for demo in button demo flip gravity piddle shapes
do
  ./${demo} && echo "ok" || echo "not ok"
done

for filter in bessel blackman box catrom cubic gaussian hamming hanning hermite lanczos mitchell point quadratic sample scale sinc triangle
do
  ./zoom -filter $filter -geometry 600x600 ${SRCDIR}/model.miff  zoom_${filter}_out.miff && echo "ok" || echo "not ok"
done
:
