Commit 184c3c3e by Miodrag Milanovic

Add start flag for verific tests

parent 73d35b39
/.stamp /.stamp
.start
\ No newline at end of file
...@@ -40,9 +40,10 @@ test5.status: test5.out ...@@ -40,9 +40,10 @@ test5.status: test5.out
echo PASS > $@) || echo FAIL > $@ echo PASS > $@) || echo FAIL > $@
test1.out test2.out test3.out test4.out test5.out: test.ys top.v top.vhd test1.out test2.out test3.out test4.out test5.out: test.ys top.v top.vhd
touch .start
@yosys -q -q test.ys @yosys -q -q test.ys
clean: clean:
rm -f *.status *.out .stamp rm -f *.status *.out .stamp .start
.PHONY: all clean .PHONY: all clean
...@@ -5,6 +5,7 @@ all: $(addsuffix .status,$(TESTS)) ...@@ -5,6 +5,7 @@ all: $(addsuffix .status,$(TESTS))
touch .stamp touch .stamp
%.status: %.sv run.sh %.status: %.sv run.sh
touch .start
-bash run.sh $(basename $@) > $(basename $@).log 2>&1 -bash run.sh $(basename $@) > $(basename $@).log 2>&1
test -f $@ test -f $@
...@@ -12,5 +13,6 @@ clean: ...@@ -12,5 +13,6 @@ clean:
rm -f $(addsuffix .log,$(TESTS)) rm -f $(addsuffix .log,$(TESTS))
rm -f $(addsuffix .status,$(TESTS)) rm -f $(addsuffix .status,$(TESTS))
rm -f .stamp rm -f .stamp
rm -f .start
.PHONY: all clean .PHONY: all clean
...@@ -5,6 +5,7 @@ all: $(addsuffix .status,$(TESTS)) ...@@ -5,6 +5,7 @@ all: $(addsuffix .status,$(TESTS))
touch .stamp touch .stamp
%.status: %.sv run.sh %.status: %.sv run.sh
touch .start
-bash run.sh $(basename $@) > $(basename $@).log 2>&1 -bash run.sh $(basename $@) > $(basename $@).log 2>&1
test -f $@ test -f $@
...@@ -16,5 +17,6 @@ clean: ...@@ -16,5 +17,6 @@ clean:
rm -f $(addsuffix .status,$(TESTS)) rm -f $(addsuffix .status,$(TESTS))
rm -f $(addsuffix .log,$(TESTS)) rm -f $(addsuffix .log,$(TESTS))
rm -f .stamp rm -f .stamp
rm -f .start
.PHONY: all clean .PHONY: all clean
...@@ -3,10 +3,11 @@ all: test.status ...@@ -3,10 +3,11 @@ all: test.status
touch .stamp touch .stamp
test.status: bar.vhd foo.vhd tb.sv test.ys top.vhd test.status: bar.vhd foo.vhd tb.sv test.ys top.vhd
touch .start
yosys -ql test.log test.ys yosys -ql test.log test.ys
grep '^SAT .*: SUCCESS' test.log && echo PASS > test.status || echo FAIL > test.status grep '^SAT .*: SUCCESS' test.log && echo PASS > test.status || echo FAIL > test.status
clean: clean:
rm -f test.status test.log .stamp rm -f test.status test.log .stamp .start
.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