mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-11 05:30:53 +00:00
tests: use optional ABCEXTERNAL when specified
Commits65924fd1
,abc40924
, andebe29b66
hard-code the invocation of yosys-abc, which fails if ABCEXTERNAL was specified during the build. Allow tests to utilize an optional, externally specified abc binary. Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
parent
c4c39e9814
commit
6f1c137989
4 changed files with 29 additions and 8 deletions
|
@ -4,15 +4,17 @@ set -e
|
|||
|
||||
OPTIND=1
|
||||
seed="" # default to no seed specified
|
||||
while getopts "S:" opt
|
||||
abcopt=""
|
||||
while getopts "A:S:" opt
|
||||
do
|
||||
case "$opt" in
|
||||
A) abcopt="-A $OPTARG" ;;
|
||||
S) seed="-S $OPTARG" ;;
|
||||
esac
|
||||
done
|
||||
shift "$((OPTIND-1))"
|
||||
|
||||
bash ../tools/autotest.sh $seed -G *.v
|
||||
bash ../tools/autotest.sh $abcopt $seed -G *.v
|
||||
|
||||
for f in `egrep -l 'expect-(wr-ports|rd-ports|rd-clk)' *.v`; do
|
||||
echo -n "Testing expectations for $f .."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue