mirror of https://github.com/VLSIDA/OpenRAM.git
Always delete result subdir to prevent bad and ok simultaneously
This commit is contained in:
parent
8fdd4966a7
commit
39f1199b63
|
|
@ -3,6 +3,7 @@ include $(TOP_DIR)/openram.mk
|
||||||
|
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
|
RM ?= "rm -rf"
|
||||||
ARGS ?=
|
ARGS ?=
|
||||||
TECH ?= scn4m_subm
|
TECH ?= scn4m_subm
|
||||||
TECHS = scn4m_subm freepdk45
|
TECHS = scn4m_subm freepdk45
|
||||||
|
|
@ -88,6 +89,7 @@ $(TEST_BASES):
|
||||||
# To run a test in a given technology
|
# To run a test in a given technology
|
||||||
%.ok:
|
%.ok:
|
||||||
# @echo "Running $(gettech) $(getfile) ... "
|
# @echo "Running $(gettech) $(getfile) ... "
|
||||||
|
@rm -rf results/$*
|
||||||
@mkdir -p results/$*/tmp
|
@mkdir -p results/$*/tmp
|
||||||
@docker run \
|
@docker run \
|
||||||
-v $(TOP_DIR):/openram \
|
-v $(TOP_DIR):/openram \
|
||||||
|
|
@ -102,7 +104,8 @@ $(TEST_BASES):
|
||||||
vlsida/openram-ubuntu:latest \
|
vlsida/openram-ubuntu:latest \
|
||||||
sh -c ". /home/cad-user/.bashrc && python3 -u $(OPENRAM_DIR)/$(getfile).py \
|
sh -c ". /home/cad-user/.bashrc && python3 -u $(OPENRAM_DIR)/$(getfile).py \
|
||||||
-t $(gettech) -k $(ARGS) -p $(OPENRAM_DIR)/results/$* > $(OPENRAM_DIR)/results/$*.out 2>&1 && touch $(OPENRAM_DIR)/results/$*.ok || touch $(OPENRAM_DIR)/results/$*.bad"
|
-t $(gettech) -k $(ARGS) -p $(OPENRAM_DIR)/results/$* > $(OPENRAM_DIR)/results/$*.out 2>&1 && touch $(OPENRAM_DIR)/results/$*.ok || touch $(OPENRAM_DIR)/results/$*.bad"
|
||||||
@test -f $(TOP_DIR)/compiler/tests/results/$*.ok && echo "$* ... PASS!" && rm -rf $(TOP_DIR)/compiler/tests/results/$* || echo "$* ... FAIL!"
|
@test -f $(TOP_DIR)/compiler/tests/results/$*.ok && echo "$* ... PASS!" && \
|
||||||
|
$(RM) $(TOP_DIR)/compiler/tests/results/$* || echo "$* ... FAIL!"
|
||||||
.DELETE_ON_ERROR: $(TEST_STAMPS)
|
.DELETE_ON_ERROR: $(TEST_STAMPS)
|
||||||
|
|
||||||
# Mount environment for debug
|
# Mount environment for debug
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue