diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2015-01-20 22:58:58 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2015-01-20 22:58:58 +0000 |
commit | 253fef20e556beb97d859f46e51d80af53565ea3 (patch) | |
tree | 27ff77efa5059b683347e6961d1468bca34b7f34 /regress | |
parent | 058fe93250c7433ed1c6031e7608637661d704a3 (diff) |
use SUBDIR to recuse into unit tests; makes "make obj" actually
work
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ssh/Makefile | 16 | ||||
-rw-r--r-- | regress/usr.bin/ssh/unittests/test_helper/Makefile | 5 |
2 files changed, 11 insertions, 10 deletions
diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index ad415b72079..ba02e046d38 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,7 +1,11 @@ -# $OpenBSD: Makefile,v 1.76 2015/01/18 22:00:18 djm Exp $ +# $OpenBSD: Makefile,v 1.77 2015/01/20 22:58:57 djm Exp $ -REGRESS_FAIL_EARLY= yes -REGRESS_TARGETS= unit t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 +.ifndef SKIP_UNIT +SUBDIR= unittests +.endif + +REGRESS_FAIL_EARLY= yes +REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 CLEANFILES+= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \ t8.out t8.out.pub t9.out t9.out.pub t10.out t10.out.pub \ @@ -90,11 +94,6 @@ SUDO_CLEAN+= /var/run/testdata_${USER} /var/run/keycommand_${USER} # Enable all malloc(3) randomisations and checks TEST_ENV= "MALLOC_OPTIONS=AFGJPRX" -unit: - if test -z "${SKIP_UNIT}" ; then \ - (set -e ; cd ${.CURDIR}/unittests ; make) \ - fi - t1: ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv tr '\n' '\r' <${.CURDIR}/rsa_ssh2.prv > ${.OBJDIR}/rsa_ssh2_cr.prv @@ -189,6 +188,5 @@ clean: rm -f ${CLEANFILES} test -z "${SUDO}" || ${SUDO} rm -f ${SUDO_CLEAN} rm -rf .putty - (set -e ; cd ${.CURDIR}/unittests ; make clean) .include <bsd.regress.mk> diff --git a/regress/usr.bin/ssh/unittests/test_helper/Makefile b/regress/usr.bin/ssh/unittests/test_helper/Makefile index 3e90903ef16..5b3894cbfb5 100644 --- a/regress/usr.bin/ssh/unittests/test_helper/Makefile +++ b/regress/usr.bin/ssh/unittests/test_helper/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/30 05:32:00 djm Exp $ +# $OpenBSD: Makefile,v 1.2 2015/01/20 22:58:57 djm Exp $ LIB= test_helper SRCS= test_helper.c fuzz.c @@ -7,6 +7,9 @@ DEBUGLIBS= no NOPROFILE= yes NOPIC= yes +# Hack to allow building with SUBDIR in ../../Makefile +regress: all + install: @echo -n |