diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-18 13:45:25 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-18 13:45:25 +0200 |
commit | ddb01df42e92818c605fbb4881b03c2412db89ac (patch) | |
tree | 888df6d203f6fb5176fcf2f8bba39659b4575317 /tests | |
parent | 5d9127418b7272ae926e917ee0167ce58b81a83e (diff) | |
download | yosys-ddb01df42e92818c605fbb4881b03c2412db89ac.tar.gz yosys-ddb01df42e92818c605fbb4881b03c2412db89ac.tar.bz2 yosys-ddb01df42e92818c605fbb4881b03c2412db89ac.zip |
Bugfix in tests/memories/run-test.sh
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/memories/run-test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/memories/run-test.sh b/tests/memories/run-test.sh index eccd40100..c3b196188 100755 --- a/tests/memories/run-test.sh +++ b/tests/memories/run-test.sh @@ -7,11 +7,11 @@ for f in `egrep -l 'expect-(wr|rd)-ports' *.v`; do echo -n "Testing expectations for $f .." ../../yosys -qp "proc; opt; memory -nomap;; dump -outfile ${f%.v}.dmp t:\$mem" $f if grep -q expect-wr-ports $f; then - grep -q "parameter \\\\WR_PORTS $(gawk '/expect-wr-ports/ { print $3; }' amber23_sram_byte_en.v)\$" amber23_sram_byte_en.dmp || + grep -q "parameter \\\\WR_PORTS $(gawk '/expect-wr-ports/ { print $3; }' $f)\$" ${f%.v}.dmp || { echo " ERROR: Unexpected number of write ports."; false; } fi if grep -q expect-rd-ports $f; then - grep -q "parameter \\\\RD_PORTS $(gawk '/expect-rd-ports/ { print $3; }' amber23_sram_byte_en.v)\$" amber23_sram_byte_en.dmp || + grep -q "parameter \\\\RD_PORTS $(gawk '/expect-rd-ports/ { print $3; }' $f)\$" ${f%.v}.dmp || { echo " ERROR: Unexpected number of read ports."; false; } fi echo " ok." |