From f446a44f30bc680e0d026a4204844b02646c1c2d Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Wed, 17 May 2023 05:52:01 +0000 Subject: upstream: 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@ OpenBSD-Regress-ID: 07f653de731def074b29293db946042706fcead3 --- regress/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/regress/Makefile b/regress/Makefile index d80bf59f..5caf9b8e 100644 --- a/regress/Makefile +++ b/regress/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 $ tests: prep file-tests t-exec unit @@ -222,7 +222,15 @@ t12: $(OBJ)/t12.out t-exec: ${LTESTS:=.sh} @if [ "x$?" = "x" ]; then exit 0; fi; \ + _started=""; test -z "${LTESTS_FROM}" && _started=1 ;\ for TEST in ""$?; do \ + if [ -z "$$_started" ] ; then \ + if [ "x$$TEST" = "x${LTESTS_FROM}.sh" ]; then \ + _started=1; \ + else \ + continue; \ + fi ; \ + fi ; \ skip=no; \ for t in ""$${SKIP_LTESTS}; do \ if [ "x$${t}.sh" = "x$${TEST}" ]; then skip=yes; fi; \ -- cgit v1.2.3