Make sure that the test / tests build target run 'run_tests' last
authorRichard Levitte <levitte@openssl.org>
Tue, 5 Dec 2023 08:21:35 +0000 (09:21 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 7 Dec 2023 06:38:21 +0000 (07:38 +0100)
Fixes #22943

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/22947)

Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl

index 828e1e91fbb26b348d8e6d40af79770308d67935..e9fb13f24fa57346099870bbb44e22fed17ec253 100644 (file)
@@ -516,7 +516,8 @@ build_all_generated : $(GENERATED_MANDATORY) $(GENERATED) build_docs
 all : build_sw build_docs
 
 test : tests
-{- dependmagic('tests'); -} : build_programs_nodep, build_modules_nodep run_tests
+{- dependmagic('tests'); -} : build_programs_nodep, build_modules_nodep
+       $(MMS) $(MMSQUALIFIERS) run_tests
 run_tests :
         @ ! {- output_off() if $disabled{tests}; "" -}
         DEFINE SRCTOP "$(SRCDIR)"
index d67da63ceac4e36236385ffb9addc898afc87f92..f7e55b3abea4ad6818fc115d5713f52192ee4cef 100644 (file)
@@ -559,8 +559,9 @@ help: ## Show this help screen
 
 ##@ Testing
 test: tests ## Run tests (alias of "tests")
-{- dependmagic('tests', 'Run tests'); -}: build_programs_nodep build_modules_nodep link-utils run_tests
-run_tests:
+{- dependmagic('tests', 'Run tests'); -}: build_programs_nodep build_modules_nodep link-utils
+       $(MAKE) run_tests
+run_tests: FORCE
        @ : {- output_off() if $disabled{tests}; "" -}
        ( SRCTOP=$(SRCDIR) \
          BLDTOP=$(BLDDIR) \