blob: d5abfa7a297d708adab9e09e27e04cb3e0525206 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#!/bin/sh
2#
3# Copyright 2004 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
4#
5# This file is part of Magick++, the C++ API for ImageMagick and
6# ImageMagick. Please see the file "COPYING" included with Magick++
7# for usage and copying restrictions.
8#
9
10SRCDIR=`dirname $0`
11SRCDIR=`cd $SRCDIR; pwd`/
12export SRCDIR
13cd Magick++/demo || exit 1
14
15base_test=`echo $0 | sed -e 's:.*/::g;s:test_::;s:\.sh::'`
16executable=`echo $base_test | sed -e 's:_.*$::'`
17filter=`echo $base_test | sed -e 's:.*_::'`
18
19outfile="test_${base_test}.out"
20
21rm -f $outfile
22${MEMCHECK} ./$executable -filter $filter -geometry 600x600 ${SRCDIR}/model.miff ${executable}_${filter}_out.miff 2>&1 > $outfile
23status=$?
24if test $status -eq 1
25then
26 cat $outfile
27fi
28rm -f $outfile
29exit $status
30
31