2019-02-19 16:35:15 -06:00
|
|
|
#!/usr/bin/env bash
|
2014-07-26 10:22:18 -05:00
|
|
|
set -e
|
2019-08-17 07:37:07 -05:00
|
|
|
{
|
|
|
|
echo "all::"
|
2014-07-26 10:22:18 -05:00
|
|
|
for x in *.ys; do
|
2019-08-17 07:37:07 -05:00
|
|
|
echo "all:: run-$x"
|
|
|
|
echo "run-$x:"
|
|
|
|
echo " @echo 'Running $x..'"
|
|
|
|
echo " @../../yosys -ql ${x%.ys}.log $x"
|
2014-07-26 10:22:18 -05:00
|
|
|
done
|
2019-07-09 13:58:28 -05:00
|
|
|
for s in *.sh; do
|
|
|
|
if [ "$s" != "run-test.sh" ]; then
|
2019-08-17 07:37:07 -05:00
|
|
|
echo "all:: run-$s"
|
|
|
|
echo "run-$s:"
|
|
|
|
echo " @echo 'Running $s..'"
|
|
|
|
echo " @bash $s"
|
2019-07-09 13:58:28 -05:00
|
|
|
fi
|
|
|
|
done
|
2019-08-17 07:37:07 -05:00
|
|
|
} > run-test.mk
|
|
|
|
exec ${MAKE:-make} -f run-test.mk
|