diff options
author | Zachary Snow <zach@zachjs.com> | 2021-02-09 19:58:15 -0500 |
---|---|---|
committer | Zachary Snow <zachary.j.snow@gmail.com> | 2021-03-01 12:13:11 -0500 |
commit | b6904a8e5344fcd01c1a0feea281cd7d7bf0f210 (patch) | |
tree | 94b6a928a4d4a9beeeb03b01840bdb65d5be62ba /tests/simple_abc9 | |
parent | 004b780b8abf4e8fdf88831cd3e77767d660f108 (diff) | |
download | yosys-b6904a8e5344fcd01c1a0feea281cd7d7bf0f210.tar.gz yosys-b6904a8e5344fcd01c1a0feea281cd7d7bf0f210.tar.bz2 yosys-b6904a8e5344fcd01c1a0feea281cd7d7bf0f210.zip |
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.
Diffstat (limited to 'tests/simple_abc9')
-rw-r--r-- | tests/simple_abc9/.gitignore | 1 | ||||
-rwxr-xr-x | tests/simple_abc9/run-test.sh | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/simple_abc9/.gitignore b/tests/simple_abc9/.gitignore index 2355aea29..fda60e577 100644 --- a/tests/simple_abc9/.gitignore +++ b/tests/simple_abc9/.gitignore @@ -2,3 +2,4 @@ *.sv *.log *.out +*.bak diff --git a/tests/simple_abc9/run-test.sh b/tests/simple_abc9/run-test.sh index 650e42fca..b48505e29 100755 --- a/tests/simple_abc9/run-test.sh +++ b/tests/simple_abc9/run-test.sh @@ -17,6 +17,24 @@ if ! command -v iverilog > /dev/null ; then exit 1 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/*.sv . DOLLAR='?' |