yosys/tests/bram/run-test.sh

33 lines
834 B
Bash
Raw Normal View History

2015-01-01 19:42:39 +01:00
#!/bin/bash
# run this test many times:
2015-01-03 10:57:01 +01:00
# MAKE="make -j8" time bash -c 'for ((i=0; i<100; i++)); do echo "-- $i --"; bash run-test.sh || exit 1; done'
2015-01-01 19:42:39 +01:00
set -e
rm -rf temp
mkdir -p temp
echo "generating tests.."
2015-08-22 09:59:25 +02:00
python3 generate.py
2015-01-01 19:42:39 +01:00
{
echo -n "all:"
for i in $( ls temp/brams_*.txt | sed 's,.*_,,; s,\..*,,;' ); do
for j in $( ls temp/brams_*.txt | sed 's,.*_,,; s,\..*,,;' | grep -v $i ); do
2015-01-02 00:07:44 +01:00
echo -n " temp/job_${i}_${j}.ok"
2015-01-01 19:42:39 +01:00
done; done
echo
for i in $( ls temp/brams_*.txt | sed 's,.*_,,; s,\..*,,;' ); do
for j in $( ls temp/brams_*.txt | sed 's,.*_,,; s,\..*,,;' | grep -v $i ); do
2015-01-02 00:07:44 +01:00
echo "temp/job_${i}_${j}.ok:"
echo " @bash run-single.sh ${i} ${j}"
2015-01-02 13:59:47 +01:00
echo " @echo 'Passed memory_bram test ${i}_${j}.'"
2015-01-01 19:42:39 +01:00
echo " @touch \$@"
done; done
} > temp/makefile
echo "running tests.."
${MAKE:-make} -f temp/makefile
exit 0