mirror of https://github.com/YosysHQ/yosys.git
Set aside extraneous tests in simple_abc9 test suite
New test cases on one branch may be automatically copied from simple/ to simple_abc9/, causing failures when switching to another branch. This updates the simple_abc9 script to set aside extraneous tests in a non-destructive way.
This commit is contained in:
parent
004b780b8a
commit
b6904a8e53
|
@ -2,3 +2,4 @@
|
||||||
*.sv
|
*.sv
|
||||||
*.log
|
*.log
|
||||||
*.out
|
*.out
|
||||||
|
*.bak
|
||||||
|
|
|
@ -17,6 +17,24 @@ if ! command -v iverilog > /dev/null ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for file in `ls *.v *.sv`; do
|
||||||
|
if [ ! -f "../simple/$file" -a "$file" != "abc9.v" ]; then
|
||||||
|
echo "Warning: $file is in simple_abc9/, but not in simple/"
|
||||||
|
backup="$file.bak"
|
||||||
|
if [ -f "$backup" ]; then
|
||||||
|
if cmp "$file" "$backup" > /dev/null; then
|
||||||
|
echo " => $backup already exists and matches; removing $file"
|
||||||
|
rm "$file"
|
||||||
|
else
|
||||||
|
echo " => $backup already exists but differs; leaving $file in place"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo " => moving $file to $backup"
|
||||||
|
mv -i "$file" "$backup"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cp ../simple/*.v .
|
cp ../simple/*.v .
|
||||||
cp ../simple/*.sv .
|
cp ../simple/*.sv .
|
||||||
DOLLAR='?'
|
DOLLAR='?'
|
||||||
|
|
Loading…
Reference in New Issue