diff options
author | djm@openbsd.org <djm@openbsd.org> | 2023-05-17 05:52:01 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-07-30 11:41:44 +1000 |
commit | f446a44f30bc680e0d026a4204844b02646c1c2d (patch) | |
tree | 04b10c8daf5becddf9633f899fce807680a53de8 | |
parent | 8eb8899d612440a9b608bee7f916081d3d0b7812 (diff) |
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
-rw-r--r-- | regress/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
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; \ |