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 *.log
test.ys
*.filtered *.filtered
*.verilogsim *.verilogsim

View File

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