Rewrite debug testing.
[riscv-tests.git] / debug / Makefile
index 086cfb995894adca2206947d0b830151d95bdfa3..4378aab1e4cea5772e7bd7cc842a2f877ee263d9 100644 (file)
@@ -6,11 +6,14 @@ GDBSERVER_PY = $(src_dir)/gdbserver.py
 
 default:       spike$(XLEN).log
 
 
 default:       spike$(XLEN).log
 
-all:   spike32.log spike64.log
+all:   pylint spike32.log spike64.log
+
+pylint:
+       pylint --rcfile=pylint.rc *.py
 
 %.log:
 
 %.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
 
 clean:
        rm -f *.log