tests: Avoid temporary script file

This commit is contained in:
Martin Povišer 2024-09-18 16:09:47 +02:00
parent 4976abb867
commit 31476e89b6
2 changed files with 1 additions and 5 deletions

View File

@ -1,4 +1,3 @@
*.log
test.ys
*.filtered
*.verilogsim

View File

@ -3,10 +3,7 @@ set -e
for x in *.lib; do
echo "Testing on $x.."
echo "read_verilog small.v" > test.ys
echo "synth -top small" >> test.ys
echo "dfflibmap -info -liberty ${x}" >> test.ys
../../yosys -ql ${x%.lib}.log -s test.ys
../../yosys -p "read_verilog small.v; synth -top small; dfflibmap -info -liberty ${x}" -ql ${x%.lib}.log
../../yosys-filterlib - $x 2>/dev/null > $x.filtered
../../yosys-filterlib -verilogsim $x > $x.verilogsim
diff $x.filtered $x.filtered.ok && diff $x.verilogsim $x.verilogsim.ok