mirror of https://github.com/VLSIDA/OpenRAM.git
Add Makefile target to run broken tests only
This commit is contained in:
parent
156eb4f0f7
commit
855139bc4e
|
|
@ -4,7 +4,6 @@ include $(TOP_DIR)/openram.mk
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
ARGS ?=
|
ARGS ?=
|
||||||
TEST_TECHS ?= scn4m_subm freepdk45
|
|
||||||
TECHS ?= scn4m_subm freepdk45 sky130
|
TECHS ?= scn4m_subm freepdk45 sky130
|
||||||
|
|
||||||
TEST_DIR = $(TOP_DIR)/compiler/tests
|
TEST_DIR = $(TOP_DIR)/compiler/tests
|
||||||
|
|
@ -182,15 +181,21 @@ gettech = $(word 1,$(subst /, ,$*))
|
||||||
getfile = $(word 2,$(subst /, ,$*))
|
getfile = $(word 2,$(subst /, ,$*))
|
||||||
TECH_TEST_STAMPS=$(foreach T, $(TECHS), $(addprefix $T/, $(TEST_STAMPS)))
|
TECH_TEST_STAMPS=$(foreach T, $(TECHS), $(addprefix $T/, $(TEST_STAMPS)))
|
||||||
|
|
||||||
# Filter out the tests after creating the tech stamps
|
# Filter out the broken tests after creating the tech stamps
|
||||||
WORKING_TECH_TEST_STAMPS=$(shell shuf -e -- $(filter-out $(BROKEN_STAMPS), $(TECH_TEST_STAMPS)))
|
WORKING_TECH_TEST_STAMPS=$(shell shuf -e -- $(filter-out $(BROKEN_STAMPS), $(TECH_TEST_STAMPS)))
|
||||||
|
# Filter out the working tests after creating the tech stamps
|
||||||
|
BROKEN_TECH_TEST_STAMPS=$(shell shuf -e -- $(filter $(BROKEN_STAMPS), $(TECH_TEST_STAMPS)))
|
||||||
|
|
||||||
# Run all technologies
|
# Run all technologies
|
||||||
all: clean $(WORKING_TECH_TEST_STAMPS)
|
all: clean $(WORKING_TECH_TEST_STAMPS)
|
||||||
@ls -1 $(TOP_DIR)/compiler/tests/results/*/*.bad 1> /dev/null 2>&1 && echo "FAILING TESTS" && ls -1 $(TOP_DIR)/compiler/tests/results/*/*.bad | sed -e "s#^.*results\/##" && exit 1 || exit 0
|
@ls -1 $(TOP_DIR)/compiler/tests/results/*/*.bad 1> /dev/null 2>&1 && echo "FAILING TESTS" && ls -1 $(TOP_DIR)/compiler/tests/results/*/*.bad | sed -e "s#^.*results\/##" && exit 1 || exit 0
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
|
# Run broken stamps only
|
||||||
|
broken: clean $(BROKEN_TECH_TEST_STAMPS)
|
||||||
|
@ls -1 $(TOP_DIR)/compiler/tests/results/*/*.bad 1> /dev/null 2>&1 && echo "FAILING TESTS" && ls -1 $(TOP_DIR)/compiler/tests/results/*/*.bad | sed -e "s#^.*results\/##" && exit 1 || exit 0
|
||||||
|
.PHONY: broken
|
||||||
|
|
||||||
# Run a given technology
|
# Run a given technology
|
||||||
# e.g. make freepdk45
|
# e.g. make freepdk45
|
||||||
$(TECHS):
|
$(TECHS):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue