]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: add LTESTS_FROM variable to allow skipping of tests up to
authordjm@openbsd.org <djm@openbsd.org>
Wed, 17 May 2023 05:52:01 +0000 (05:52 +0000)
committerDamien Miller <djm@mindrot.org>
Sun, 30 Jul 2023 01:41:44 +0000 (11:41 +1000)
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

index d80bf59fabc211d4820b231b6760aae3bdf2783b..5caf9b8e41dd45394e6b846c1332868c6302d76e 100644 (file)
@@ -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; \