yosys/tests/ice40/run-test.sh

21 lines
447 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2019-08-19 23:50:05 -05:00
set -e
2019-08-21 13:52:07 -05:00
{
echo "all::"
for x in *.ys; do
echo "all:: run-$x"
echo "run-$x:"
echo " @echo 'Running $x..'"
2019-08-22 15:57:19 -05:00
echo " @../../yosys -ql ${x%.ys}.log $x -w 'Yosys has only limited support for tri-state logic at the moment.'"
2019-08-19 23:50:05 -05:00
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
2019-08-21 13:52:07 -05:00
} > run-test.mk
exec ${MAKE:-make} -f run-test.mk