From c471823626c87c6c416ce406c3904c628dbce7f5 Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 10 Feb 2022 11:18:52 -0800 Subject: [PATCH] Run individual tests on all technologies by default --- compiler/tests/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/compiler/tests/Makefile b/compiler/tests/Makefile index 9a90d16d..6649cc34 100644 --- a/compiler/tests/Makefile +++ b/compiler/tests/Makefile @@ -4,9 +4,8 @@ include $(TOP_DIR)/openram.mk .DEFAULT_GOAL := all ARGS ?= -TECH ?= scn4m_subm -TECHS = scn4m_subm freepdk45 -ALL_TECHS = scn4m_subm freepdk45 sky130 +TEST_TECHS = scn4m_subm freepdk45 +TECHS ?= scn4m_subm freepdk45 sky130 TEST_DIR = $(TOP_DIR)/compiler/tests TEST_SRCS = $(sort $(notdir $(wildcard $(TEST_DIR)/*_test.py))) @@ -62,7 +61,7 @@ BROKEN_STAMPS = \ gettech = $(word 1,$(subst /, ,$*)) getfile = $(word 2,$(subst /, ,$*)) -TECH_TEST_STAMPS=$(foreach T, $(TECHS), $(addprefix $T/, $(TEST_STAMPS))) +TECH_TEST_STAMPS=$(foreach T, $(TEST_TECHS), $(addprefix $T/, $(TEST_STAMPS))) # Filter out the tests after creating the tech stamps WORKING_TECH_TEST_STAMPS=$(filter-out $(BROKEN_STAMPS), $(TECH_TEST_STAMPS)) @@ -75,14 +74,14 @@ all: $(WORKING_TECH_TEST_STAMPS) # Run a given technology # e.g. make freepdk45 -$(ALL_TECHS): +$(TECHS): @$(MAKE) --no-print-directory $(filter-out $(BROKEN_STAMPS), $(addprefix $@/, $(TEST_STAMPS))) .PHONY: $(TECHS) -# Targets for each individual test +# Targets for each individual test in all technologies # e.g. make 04_pinv_1x_test $(TEST_BASES): - @$(MAKE) --no-print-directory $(TECH)/$@.ok + @$(MAKE) --no-print-directory $(foreach T, $(TECHS), $(addprefix $T/, $@.ok)) .PHONY: $(TEST_BASES) # To run a test in a given technology