Commit b4a7fc1a by Clifford Wolf

Improve logging and console output

Signed-off-by: Clifford Wolf <clifford@clifford.at>
parent a5dee4ad
SUBDIRS = verific SUBDIRS = verific
all: $(addsuffix /.stamp,$(SUBDIRS)) all: $(addsuffix /.stamp,$(SUBDIRS))
find -name "*.status" | sort | xargs grep -H . | sed 's,.status:,\t,; s,PASS,pass,;' | expand -t40 echo; find * -name "*.status" | sort | xargs grep -H . | sed 's,^, ,; s,.status:,\t,; s,PASS,pass,;' | expand -t40; echo
touch .stamp touch .stamp
%/.stamp: %/.stamp:
......
...@@ -5,7 +5,7 @@ all: $(addsuffix .status,$(TESTS)) ...@@ -5,7 +5,7 @@ all: $(addsuffix .status,$(TESTS))
touch .stamp touch .stamp
%.status: %.sv run.sh %.status: %.sv run.sh
-bash run.sh $(basename $@) -bash run.sh $(basename $@) > $(basename $@).log 2>&1
test -f $@ test -f $@
clean: clean:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
set -ex set -ex
trap "echo FAIL > $1.status" ERR trap "echo FAIL > $1.status" ERR
yosys -l $1.log -p " yosys -p "
verific -sv $1.sv verific -sv $1.sv
verific -import -v top verific -import -v top
synth -flatten -top top synth -flatten -top top
......
...@@ -5,7 +5,7 @@ all: $(addsuffix .status,$(TESTS)) ...@@ -5,7 +5,7 @@ all: $(addsuffix .status,$(TESTS))
touch .stamp touch .stamp
%.status: %.sv run.sh %.status: %.sv run.sh
-bash run.sh $(basename $@) -bash run.sh $(basename $@) > $(basename $@).log 2>&1
test -f $@ test -f $@
clean: clean:
...@@ -14,6 +14,7 @@ clean: ...@@ -14,6 +14,7 @@ clean:
rm -f $(addsuffix .pass_??.sby,$(TESTS)) rm -f $(addsuffix .pass_??.sby,$(TESTS))
rm -f $(addsuffix .fail_??.sby,$(TESTS)) rm -f $(addsuffix .fail_??.sby,$(TESTS))
rm -f $(addsuffix .status,$(TESTS)) rm -f $(addsuffix .status,$(TESTS))
rm -f $(addsuffix .log,$(TESTS))
rm -f .stamp rm -f .stamp
.PHONY: all clean .PHONY: all clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment