Skip to content

Commit

Permalink
[VTA][Chisel] run all unittests by default (apache#3766)
Browse files Browse the repository at this point in the history
* [VTA][Chisel] run all unittests by default

* better naming

* add generated unittest folder to clean rule
  • Loading branch information
vegaluisjose authored and wweic committed Sep 6, 2019
1 parent 610c6f8 commit 99a9916
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vta/hardware/chisel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 99a9916

Please sign in to comment.