cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | #!/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 | |
| 10 | SRCDIR=`dirname $0` |
| 11 | SRCDIR=`cd $SRCDIR; pwd`/ |
| 12 | export SRCDIR |
| 13 | cd Magick++/tests || exit 1 |
| 14 | |
| 15 | executable=`echo $0 | sed -e 's:.*/::g;s:test_::;s:\.sh::'` |
| 16 | |
| 17 | outfile="test_${executable}.out" |
| 18 | |
| 19 | rm -f $outfile |
| 20 | ${MEMCHECK} "./${executable}" 2>&1 > $outfile |
| 21 | status=$? |
| 22 | if test $status -eq 1 |
| 23 | then |
| 24 | cat $outfile |
| 25 | fi |
| 26 | rm -f $outfile |
| 27 | exit $status |
| 28 | |
| 29 | |