projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix threadid NULL deref
[mmh]
/
test
/
setup-test
diff --git
a/test/setup-test
b/test/setup-test
index
a05b139
..
ffd9e64
100755
(executable)
--- a/
test/setup-test
+++ b/
test/setup-test
@@
-1,11
+1,26
@@
#!/bin/sh
#!/bin/sh
-TEMPDIR=`mktemp -d /tmp/nmh-test-XXXXXXXX`
-echo $TEMPDIR > test-temp-dir
+set -e
+
+if TEMPDIR="`cat test-temp-dir 2>/dev/null`" \
+ && [ -f "$TEMPDIR/build/Makefile" ]; then
+ (cd "$TEMPDIR/build" && make all install)
+ exit
+fi
+
+TEMPDIR="`mktemp -d /tmp/mmh-test-XXXXXXXX`"
+echo "$TEMPDIR" >test-temp-dir
cd ..
cd ..
-autoheader && autoconf && date > stamp-h.in
-./configure --prefix=$TEMPDIR --with-locking=fcntl
-make install
+srcdir="$PWD"
+if [ ! -f configure ]; then
+ ./autogen.sh
+fi
+if [ -f Makefile ]; then
+ make -s clean
+fi
-echo "Path: $TEMPDIR/Mail" > $TEMPDIR/mh_profile
+mkdir "$TEMPDIR/build"
+cd "$TEMPDIR/build"
+"$srcdir/configure" -q --prefix="$TEMPDIR" --enable-debug
+make -s all install