2019-08-30 01:11:03 -05:00
|
|
|
#!/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-09-27 04:31:55 -05:00
|
|
|
echo " @../../yosys -ql ${x%.ys}.log -w 'Yosys has only limited support for tri-state logic at the moment.' $x"
|
2019-08-19 23:50:05 -05:00
|
|
|
done
|
2019-08-30 01:11:03 -05:00
|
|
|
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
|