summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-02-26 20:32:58 -0800
committerDamien Miller <djm@mindrot.org>2015-02-26 20:34:06 -0800
commit9e1cfca7e1fe9cf8edb634fc894e43993e4da1ea (patch)
tree679f8b1b90adc6e8cf3ff7065384f212fe514b03
parentbd58853102cee739f0e115e6d4b5334332ab1442 (diff)
create OBJ/valgrind-out before running unittests
-rw-r--r--regress/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/Makefile b/regress/Makefile
index 7005b410..13e3fc8a 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -1,11 +1,14 @@
# $OpenBSD: Makefile,v 1.78 2015/01/26 06:12:18 djm Exp $
REGRESS_TARGETS= unit t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t-exec
-tests: $(REGRESS_TARGETS)
+tests: prep $(REGRESS_TARGETS)
# Interop tests are not run by default
interop interop-tests: t-exec-interop
+prep:
+ test "x${USE_VALGRIND}" != "x" && mkdir -p $(OBJ)/valgrind-out
+
clean:
for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done
test -z "${SUDO}" || ${SUDO} rm -f ${SUDO_CLEAN}