aboutsummaryrefslogtreecommitdiff
path: root/debug/Makefile
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-09-15 13:11:56 -0700
committerTim Newsome <tim@sifive.com>2016-09-15 13:16:48 -0700
commitce10cc711f00df9fc97df39094c1cddd49ae212e (patch)
tree83f670b811d099b7d25a7d8c609e70c6e3e0bcda /debug/Makefile
parentd2aeeedd0727804bf3a7d07b5efb4d00b67f0f33 (diff)
downloadriscv-tests-ce10cc711f00df9fc97df39094c1cddd49ae212e.zip
riscv-tests-ce10cc711f00df9fc97df39094c1cddd49ae212e.tar.gz
riscv-tests-ce10cc711f00df9fc97df39094c1cddd49ae212e.tar.bz2
Rewrite debug testing.
No longer use unittest. Now tests can return not_applicable if eg. a desired execution mode isn't implemented on a target. Also we do a better job killing spike processes when a test fails. Did a lot of code cleanup, partly by using pylint. Fix the Makefile so that if the test fails, 'make' actually fails too.
Diffstat (limited to 'debug/Makefile')
-rw-r--r--debug/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/debug/Makefile b/debug/Makefile
index 086cfb9..4378aab 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -6,11 +6,14 @@ GDBSERVER_PY = $(src_dir)/gdbserver.py
default: spike$(XLEN).log
-all: spike32.log spike64.log
+all: pylint spike32.log spike64.log
+
+pylint:
+ pylint --rcfile=pylint.rc *.py
%.log:
- $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --cmd $(RISCV_SIM) -- -v \
- > $@ 2>&1 || sed s/^/$@:\ / $@
+ $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --cmd $(RISCV_SIM) \
+ > $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
clean:
rm -f *.log