X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Fsetup-test;h=a99c6c7e7f6be97ad0bb6e344b59b5e3aabbcbad;hp=a05b13924ad6d6684eef0dcba1af51236c28cf28;hb=0aef47ae5c03e1d9e3f225efe5ae362e7cf5ee35;hpb=7afe9b7d7142e48c76dfac3992fdf91d3e5518ff diff --git a/test/setup-test b/test/setup-test index a05b139..a99c6c7 100755 --- a/test/setup-test +++ b/test/setup-test @@ -1,11 +1,24 @@ #!/bin/sh +set -e + +if TEMPDIR=`cat test-temp-dir 2> /dev/null` \ + && [ -e $TEMPDIR/bld/Makefile ]; then + (cd $TEMPDIR/bld && make all install) + exit +fi + TEMPDIR=`mktemp -d /tmp/nmh-test-XXXXXXXX` echo $TEMPDIR > test-temp-dir cd .. -autoheader && autoconf && date > stamp-h.in -./configure --prefix=$TEMPDIR --with-locking=fcntl +if ! [ -e configure ]; then + ./autogen.sh +fi +srcdir=$PWD +mkdir $TEMPDIR/bld +cd $TEMPDIR/bld +$srcdir/configure --prefix=$TEMPDIR --with-locking=fcntl --enable-debug make install echo "Path: $TEMPDIR/Mail" > $TEMPDIR/mh_profile