mirror of https://github.com/VLSIDA/OpenRAM.git
Don't use Docker for unit tests
This commit is contained in:
parent
c04f54924c
commit
c613693399
|
|
@ -12,7 +12,7 @@ TEST_SRCS = $(sort $(notdir $(wildcard $(TEST_DIR)/*_test.py)))
|
||||||
TEST_BASES = $(basename $(TEST_SRCS))
|
TEST_BASES = $(basename $(TEST_SRCS))
|
||||||
TEST_STAMPS= $(addsuffix .ok,$(TEST_BASES))
|
TEST_STAMPS= $(addsuffix .ok,$(TEST_BASES))
|
||||||
|
|
||||||
OPENRAM_DIR = /openram/compiler/tests
|
OPENRAM_DIR = $(OPENRAM_HOME)/tests
|
||||||
RESULTS_DIR = $(OPENRAM_DIR)/results
|
RESULTS_DIR = $(OPENRAM_DIR)/results
|
||||||
|
|
||||||
# Use % for all techs:
|
# Use % for all techs:
|
||||||
|
|
@ -119,8 +119,7 @@ $(TEST_BASES):
|
||||||
@rm -rf results/$*
|
@rm -rf results/$*
|
||||||
@rm -rf results/$*.*
|
@rm -rf results/$*.*
|
||||||
@mkdir -p results/$*/tmp
|
@mkdir -p results/$*/tmp
|
||||||
@$(DOCKER_CMD) sh -c ". /home/cad-user/.bashrc && sleep 1 && python3 -u $(OPENRAM_DIR)/$(getfile).py \
|
@sh -c "python3 -u $(OPENRAM_DIR)/$(getfile).py -t $(gettech) -k -v $(ARGS) -p $(OPENRAM_DIR)/results/$* > $(OPENRAM_DIR)/results/$*.out 2>&1 && touch $(OPENRAM_DIR)/results/$*.ok || touch $(OPENRAM_DIR)/results/$*.bad"
|
||||||
-t $(gettech) -k -v $(ARGS) -p $(OPENRAM_DIR)/results/$* > $(OPENRAM_DIR)/results/$*.out 2>&1 && touch $(OPENRAM_DIR)/results/$*.ok || touch $(OPENRAM_DIR)/results/$*.bad"
|
|
||||||
ifdef KEEP
|
ifdef KEEP
|
||||||
@test -f $(TOP_DIR)/compiler/tests/results/$*.ok && echo "$* ... PASS!" || echo "$* ... FAIL!"
|
@test -f $(TOP_DIR)/compiler/tests/results/$*.ok && echo "$* ... PASS!" || echo "$* ... FAIL!"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue