]> granicus.if.org Git - imagemagick/blobdiff - tests/common.shi
Update copyright years
[imagemagick] / tests / common.shi
index 620f6564e2fc8dc484af9152b4b6d95eacd5fd5b..06193414ea77d819b42b83fe8edb37c72a7c9cc6 100644 (file)
@@ -1,23 +1,10 @@
 # Test environment
-top_srcdir='/home/cristy/ImageMagick/ImageMagick'
-top_builddir='/home/cristy/ImageMagick/ImageMagick'
-
-set -a
-COMPARE="/home/cristy/ImageMagick/ImageMagick/utilities/compare"
-COMPOSITE="/home/cristy/ImageMagick/ImageMagick/utilities/composite"
-CONJURE="/home/cristy/ImageMagick/ImageMagick/utilities/conjure"
-CONVERT="/home/cristy/ImageMagick/ImageMagick/utilities/convert"
-DISPLAY="/home/cristy/ImageMagick/ImageMagick/utilities/display"
-IDENTIFY="/home/cristy/ImageMagick/ImageMagick/utilities/identify"
-MAGICK="/home/cristy/ImageMagick/ImageMagick/utilities/magick"
-MONTAGE="/home/cristy/ImageMagick/ImageMagick/utilities/montage"
-VALIDATE="/home/cristy/ImageMagick/ImageMagick/tests/validate"
-DRAWTEST="/home/cristy/ImageMagick/ImageMagick/tests/drawtest"
-WANDTEST="/home/cristy/ImageMagick/ImageMagick/tests/wandtest"
-REFERENCE_IMAGE="/home/cristy/ImageMagick/ImageMagick/images/rose.pnm"
-LD_LIBRARY_PATH="/home/cristy/ImageMagick/ImageMagick/magick/.libs:${LD_LIBRARY_PATH}"
-MAGICK_CODER_MODULE_PATH='/home/cristy/ImageMagick/ImageMagick/coders'
-MAGICK_CONFIGURE_PATH='/home/cristy/ImageMagick/ImageMagick/config:/home/cristy/ImageMagick/ImageMagick/config'
-MAGICK_FILTER_MODULE_PATH='/home/cristy/ImageMagick/ImageMagick/filters'
-PATH="/home/cristy/ImageMagick/ImageMagick/utilities:${PATH}"
-set +a
+SRCDIR=`dirname $0`
+SRCDIR=`cd $SRCDIR && pwd`
+TOPSRCDIR=`cd $srcdir && pwd`
+REFERENCE_IMAGE="${TOPSRCDIR}/images/rose.pnm"
+. ./common.shi
+[ "X$CONVERT" = "X" ] && CONVERT=convert
+[ "X$IDENTIFY" = "X" ] && IDENTIFY=identify
+export SRCDIR TOPSRCDIR
+cd tests || exit 1