Skip to content

Commit

Permalink
Make sure that the test / tests build target run 'run_tests' last
Browse files Browse the repository at this point in the history
Fixes #22943

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from #22947)
  • Loading branch information
levitte committed Dec 7, 2023
1 parent f529a2e commit f882753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Configurations/descrip.mms.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
5 changes: 3 additions & 2 deletions Configurations/unix-Makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit f882753

Please sign in to comment.