Skip to content

Commit 45c52ec

Browse files
committed
Try using prove when available
1 parent cf9d61f commit 45c52ec

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dothem

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,23 @@ do
3838
shift
3939
done
4040

41+
for TRASH in /dev/shm /tmp ""
42+
do
43+
if test -n "$TRASH" && test -d "$TRASH" && test -w "$TRASH"
44+
then
45+
TRASH="--root=$TRASH/testpen"
46+
break
47+
fi
48+
done
49+
4150
sh -c 'asciidoc --version >/dev/null 2>&1' || nodoc=y
51+
if sh -c 'prove --version >/dev/null 2>&1'
52+
then
53+
DEFAULT_TEST_TARGET=prove GIT_PROVE_OPTS="$jobs"
54+
export DEFAULT_TEST_TARGET GIT_PROVE_OPTS
55+
fi
56+
GIT_TEST_OPTS="$TRASH${GIT_TEST_OPTS+" $GIT_TEST_OPTS"}"
57+
export GIT_TEST_OPTS
4258

4359
test -f /bin/dash || with_dash=
4460
if test -z "$BUILDBASE"

0 commit comments

Comments
 (0)