Commit b81c0b34 by Eddie Hung

Fix to properly search for ALL patterns

parent c7779d11
......@@ -3,31 +3,41 @@ all: test1.status test2.status test3.status test4.status test5.status
@touch .stamp
test1.status: test1.out
@grep -q -e "^Importing module top_veri_v2k(WIDTH=2).$$" -e "^Importing module top_veri_95(WIDTH=2).$$" -e "^Importing module top_vhdl(width=2).$$" $< && echo PASS > $@ || echo FAIL > $@
@(grep -q -e "^Importing module top_veri_v2k(WIDTH=2).$$" $< && \
grep -q -e "^Importing module top_veri_95(WIDTH=2).$$" $< && \
grep -q -e "^Importing module top_vhdl(width=2).$$" $< && \
echo PASS > $@) || echo FAIL > $@
test2.status: test2.out
@grep -q -e "^Importing module top_veri_v2k(greeting=\"hola hola\").$$" -e "^Importing module top_veri_95(greeting=\"hola hola\").$$" -e "^Importing module top_vhdl(greeting=\"hola hola\").$$" $< && echo PASS > $@ || echo FAIL > $@
@(grep -q -e "^Importing module top_veri_v2k(greeting=\"hola hola\").$$" $< && \
grep -q -e "^Importing module top_veri_95(greeting=\"hola hola\").$$" $< && \
grep -q -e "^Importing module top_vhdl(greeting=\"hola hola\").$$" $< && \
echo PASS > $@) || echo FAIL > $@
test3.status: test3.out
@grep -q -e "^Importing module top_veri_v2k.$$" -e "^Importing module top_veri_95.$$" -e "^Importing module top_vhdl.$$" $< && echo PASS > $@ || echo FAIL > $@
@(grep -q -e "^Importing module top_veri_v2k.$$" $< && \
grep -q -e "^Importing module top_veri_95.$$" $< && \
grep -q -e "^Importing module top_vhdl.$$" $< && \
grep -q -e "^VERIFIC-WARNING \\[VHDL-1676\\] top.vhd:1: unit 'top_vhdl' does not have a generic named 'nonexistent' to override$$" $< && \
grep -q -e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:1: module 'top_veri_v2k' does not have a parameter named 'nonexistent' to override$$" $< && \
grep -q -e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:10: module 'top_veri_95' does not have a parameter named 'nonexistent' to override$$" $< && \
echo PASS > $@) || echo FAIL > $@
test4.status: test4.out
@grep -q -e "^Importing module top_veri_v2k.$$" \
-e "^Importing module top_veri_95.$$" \
-e "^Importing module top_vhdl.$$" \
-e "^VERIFIC-WARNING \\[VHDL-1676\\] top.vhd:1: unit 'top_vhdl' does not have a generic named 'nonexistent' to override$$" \
-e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:1: module 'top_veri_v2k' does not have a parameter named 'nonexistent' to override$$" \
-e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:10: module 'top_veri_95' does not have a parameter named 'nonexistent' to override$$" \
$< && echo PASS > $@ || echo FAIL > $@
@(grep -q -e "^Importing module top_veri_v2k.$$" $< && \
grep -q -e "^Importing module top_veri_95.$$" $< && \
grep -q -e "^Importing module top_vhdl.$$" $< && \
grep -q -e "^-chparam WIDTH already specified: overwriting.$$" $< && \
echo PASS > $@) || echo FAIL > $@
test5.status: test5.out
@grep -q -e "^Importing module top_veri_v2k(WIDTH=2,INIT=0,greeting=\"bonjour \").$$" \
-e "^Importing module top_veri_95(WIDTH=2,INIT=0,greeting=\"bonjour \").$$" \
-e "^Importing module top_vhdl(width=2,init='0',greeting=\"bonjour \").$$" \
-e "^VERIFIC-WARNING \\[VHDL-1676\\] top.vhd:1: unit 'top_vhdl' does not have a generic named 'nonexistent' to override$$" \
-e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:1: module 'top_veri_v2k' does not have a parameter named 'nonexistent' to override$$" \
-e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:10: module 'top_veri_95' does not have a parameter named 'nonexistent' to override$$" \
$< && echo PASS > $@ || echo FAIL > $@
@(grep -q -e "^Importing module top_veri_v2k(WIDTH=2,INIT=0,greeting=\"bonjour \").$$" $< && \
grep -q -e "^Importing module top_veri_95(WIDTH=2,INIT=0,greeting=\"bonjour \").$$" $< && \
grep -q -e "^Importing module top_vhdl(width=2,init='0',greeting=\"bonjour \").$$" $< && \
grep -q -e "^VERIFIC-WARNING \\[VHDL-1676\\] top.vhd:1: unit 'top_vhdl' does not have a generic named 'nonexistent' to override$$" $< && \
grep -q -e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:1: module 'top_veri_v2k' does not have a parameter named 'nonexistent' to override$$" $< && \
grep -q -e "^VERIFIC-WARNING \\[VERI-1928\\] top.v:10: module 'top_veri_95' does not have a parameter named 'nonexistent' to override$$" $< && \
echo PASS > $@) || echo FAIL > $@
test1.out test2.out test3.out test4.out test5.out: test.ys top.v top.vhd
@yosys -q -q test.ys
......
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