blob: 0d242a984bfd28011463f69b7071d3e5a8b0f31f [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++/tests || exit 1
14
15executable=`echo $0 | sed -e 's:.*/::g;s:test_::;s:\.sh::'`
16
17outfile="test_${executable}.out"
18
19rm -f $outfile
20${MEMCHECK} "./${executable}" 2>&1 > $outfile
21status=$?
22if test $status -eq 1
23then
24 cat $outfile
25fi
26rm -f $outfile
27exit $status
28
29