diff options
author | Pepijn de Vos <pepijndevos@gmail.com> | 2019-10-21 16:25:15 +0200 |
---|---|---|
committer | Pepijn de Vos <pepijndevos@gmail.com> | 2019-10-21 16:25:15 +0200 |
commit | 83fbfe0964dc7315ca6d508e6069507250d9f093 (patch) | |
tree | c64a7a245bf239abbbab15fb63fb7225dadad931 /tests/arch/gowin/run-test.sh | |
parent | 03457ee13e36574add688a9c2c5c0641a4d6df05 (diff) | |
download | yosys-83fbfe0964dc7315ca6d508e6069507250d9f093.tar.gz yosys-83fbfe0964dc7315ca6d508e6069507250d9f093.tar.bz2 yosys-83fbfe0964dc7315ca6d508e6069507250d9f093.zip |
Add some tests
Copied from Efinix.
* fsm is broken
* latch and tribuf are not implemented yet
* memory maps to dram
Diffstat (limited to 'tests/arch/gowin/run-test.sh')
-rwxr-xr-x | tests/arch/gowin/run-test.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/arch/gowin/run-test.sh b/tests/arch/gowin/run-test.sh new file mode 100755 index 000000000..bf19b887d --- /dev/null +++ b/tests/arch/gowin/run-test.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +set -e +{ +echo "all::" +for x in *.ys; do + echo "all:: run-$x" + echo "run-$x:" + echo " @echo 'Running $x..'" + echo " @../../../yosys -ql ${x%.ys}.log -w 'Yosys has only limited support for tri-state logic at the moment.' $x" +done +for s in *.sh; do + if [ "$s" != "run-test.sh" ]; then + echo "all:: run-$s" + echo "run-$s:" + echo " @echo 'Running $s..'" + echo " @bash $s" + fi +done +} > run-test.mk +exec ${MAKE:-make} -f run-test.mk |