From b349d292524d574d9a3328081add704f36ec18d5 Mon Sep 17 00:00:00 2001 From: djm Date: Wed, 17 May 2023 05:52:01 +0000 Subject: [PATCH] add LTESTS_FROM variable to allow skipping of tests up to a specific point. e.g. "make LTESTS_FROM=t-sftp" will only run the sftp.sh test and subsequent ones. ok dtucker@ --- regress/usr.bin/ssh/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index 8ae0d0dfc8c..006f79d9b61 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.124 2023/03/01 09:29:32 dtucker Exp $ +# $OpenBSD: Makefile,v 1.125 2023/05/17 05:52:01 djm Exp $ OPENSSL?= yes @@ -13,7 +13,7 @@ REGRESS_SETUP_ONCE=misc # For sk-dummy.so REGRESS_FAIL_EARLY?= yes # Key conversion operations are not supported when built w/out OpenSSL. -.if ${OPENSSL:L} != no +.if !defined(LTESTS_FROM) && ${OPENSSL:L} != no REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 .endif @@ -221,8 +221,14 @@ t-${t}: timestamp sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh .endfor +.undef LTESTS_STARTED .for t in ${LTESTS} +.if defined(LTESTS_FROM) && ${LTESTS_FROM} == t-${t} +LTESTS_STARTED=yes +.endif +.if !defined(LTESTS_FROM) || defined(LTESTS_STARTED) REGRESS_TARGETS+=t-${t} +.endif .endfor .for t in ${INTEROP_TESTS} -- 2.20.1