X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Fsetup-test;h=fab26a0e1af04a8b11b33bde474aad54f2d1153e;hp=d197295292595077a9215e17460f07a5997968e1;hb=612e67b21d1c9a6cc5db0e2903ddaeb5f2fbe2a0;hpb=031871c2ede845956070da603e8494690f7beb70 diff --git a/test/setup-test b/test/setup-test index d197295..fab26a0 100755 --- a/test/setup-test +++ b/test/setup-test @@ -1,30 +1,22 @@ #!/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 -pushd .. -aclocal -autoheader -autoconf -./configure --prefix=$TEMPDIR --with-locking=fcntl +cd .. +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 -mkdir $TEMPDIR/Mail - -MH=$TEMPDIR/mh_profile $TEMPDIR/bin/folder -create +inbox - -for i in `seq 1 10`; -do - cat > $TEMPDIR/Mail/inbox/$i < -To: Some User -Date: Fri, 29 Sep 2006 00:00:00 -Subject: Testing message $i - -This is message number $i -EOF -done - -popd