Skip to content

Commit

Permalink
Add additional make targets to run all golden tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Oct 14, 2021
1 parent 1f05071 commit 5c0c14b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ docs/antora.yml:
- custom-route-legacy
- custom-route-legacy-4.7
- custom-route-managed-tls

Makefile:
includes:
- Makefile.additional.mk
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SHELL := bash
.SUFFIXES:

include Makefile.vars.mk
include Makefile.additional.mk

.PHONY: help
help: ## Show this help
Expand Down
15 changes: 15 additions & 0 deletions Makefile.additional.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
instances=$(shell find ./tests -maxdepth 1 -type f -name '*.yml')


.PHONY: all-golden-diff
golden-diff-all: recursive_target=golden-diff
golden-diff-all: $(instances) ## Run golden-diff for all instances. Note: this doesn't work when running make with multiple parallel job (-j != 1).

.PHONY: all-golden-diff
gen-golden-all: recursive_target=gen-golden
gen-golden-all: $(instances) ## Run gen-golden for all instances. Note: this doesn't work when running make with multiple parallel job (-j != 1).


.PHONY: $(instances)
$(instances):
$(MAKE) $(recursive_target) -e instance=$(basename $(@F))

0 comments on commit 5c0c14b

Please sign in to comment.