From 99a9916d4c48b1e0bef1c1414176788d1d46069f Mon Sep 17 00:00:00 2001 From: Luis Vega Date: Tue, 13 Aug 2019 16:02:48 -0700 Subject: [PATCH] [VTA][Chisel] run all unittests by default (#3766) * [VTA][Chisel] run all unittests by default * better naming * add generated unittest folder to clean rule --- vta/hardware/chisel/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vta/hardware/chisel/Makefile b/vta/hardware/chisel/Makefile index cf57c0e0fda3..6d89a811c255 100644 --- a/vta/hardware/chisel/Makefile +++ b/vta/hardware/chisel/Makefile @@ -38,13 +38,13 @@ TOP_TEST = Test BUILD_NAME = build USE_TRACE = 0 VTA_LIBNAME = libvta_hw +UNITTEST_NAME = all config_test = $(TOP_TEST)$(CONFIG) vta_dir = $(abspath ../../) tvm_dir = $(abspath ../../../) verilator_build_dir = $(vta_dir)/$(BUILD_NAME)/verilator chisel_build_dir = $(vta_dir)/$(BUILD_NAME)/chisel -test_name = mvm verilator_opt = --cc verilator_opt += +define+RANDOMIZE_GARBAGE_ASSIGN @@ -112,11 +112,11 @@ verilog_test: $(chisel_build_dir)/$(TOP_TEST).$(CONFIG).v $(chisel_build_dir)/$(TOP_TEST).$(CONFIG).v: sbt 'runMain vta.$(config_test) --target-dir $(chisel_build_dir) --top-name $(TOP_TEST).$(CONFIG)' -test: - sbt 'test:runMain unittest.Launcher $(test_name)' +unittest: + sbt 'test:runMain unittest.Launcher $(UNITTEST_NAME)' clean: - -rm -rf target project/target project/project + -rm -rf target project/target project/project test_run_dir cleanall: -rm -rf $(vta_dir)/$(BUILD_NAME)