From c613693399f49cf63d3ec6a254b37f1692b66a76 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sun, 22 Jan 2023 18:19:56 -0800 Subject: [PATCH] Don't use Docker for unit tests --- compiler/tests/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/tests/Makefile b/compiler/tests/Makefile index f736d222..daafa4dc 100644 --- a/compiler/tests/Makefile +++ b/compiler/tests/Makefile @@ -12,7 +12,7 @@ TEST_SRCS = $(sort $(notdir $(wildcard $(TEST_DIR)/*_test.py))) TEST_BASES = $(basename $(TEST_SRCS)) TEST_STAMPS= $(addsuffix .ok,$(TEST_BASES)) -OPENRAM_DIR = /openram/compiler/tests +OPENRAM_DIR = $(OPENRAM_HOME)/tests RESULTS_DIR = $(OPENRAM_DIR)/results # Use % for all techs: @@ -119,8 +119,7 @@ $(TEST_BASES): @rm -rf results/$* @rm -rf results/$*.* @mkdir -p results/$*/tmp - @$(DOCKER_CMD) sh -c ". /home/cad-user/.bashrc && sleep 1 && 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" + @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" ifdef KEEP @test -f $(TOP_DIR)/compiler/tests/results/$*.ok && echo "$* ... PASS!" || echo "$* ... FAIL!" else