root/ImageMagick/trunk/Magick++/tests/exceptions.sh

Revision 1, 0.6 KB (checked in by cristy, 6 months ago)


  • Property svn:executable set to *
Line 
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
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
Note: See TracBrowser for help on using the browser.