mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-20 17:09:45 +00:00
Converted blif tests
This commit is contained in:
parent
1231bd5397
commit
2bc46e77c8
4 changed files with 31 additions and 23 deletions
11
tests/blif/generate_mk.py
Normal file
11
tests/blif/generate_mk.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
sys.path.append("..")
|
||||
|
||||
import gen_tests_makefile
|
||||
|
||||
gen_tests_makefile.generate(["--yosys-scripts"], [],
|
||||
"""if [ -f $(@:.ys=.blif) ]; then \\
|
||||
diff <(tail -n +2 $(@:.ys=.blif).out) <(tail -n +2 $(@:.ys=.blif).ok) >/dev/null 2>&1; \\
|
||||
fi""")
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
source ../common-env.sh
|
||||
set -e
|
||||
for x in *.ys; do
|
||||
echo "Running $x.."
|
||||
../../yosys --no-version -ql ${x%.ys}.log $x >/dev/null 2>&1
|
||||
done
|
||||
|
||||
for x in *.blif; do
|
||||
diff $x.out $x.ok
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue