I like the proposed solution and will have a go with that one too !
Saves a lot of compilation time.
In the mean time I have created a bash script that works. However it
compiles at every run.
It is not highly advanced ;).
Next to that I included a comparison between a reference file and log file.
#!/bin/bash
passedTests=0
failedTests=0
for testname in `cat inputfile.txt`; do
echo
echo "****************************************"
echo "* Test : $testname *"
echo "****************************************"
echo
make compile test_name=$testname
make run
if diff $testname"_ref.txt" $testname"_log.txt" >/dev/null ; then
echo Test $testname Passed
((passedTests++))
else
echo Test $testname Failed
((failedTests++))
fi
make clean
done
echo
echo
echo Passed Tests : $passedTests
echo Failed Tests : $failedTests
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss