URL
https://opencores.org/ocsvn/turbo8051/turbo8051/trunk
Subversion Repositories turbo8051
[/] [turbo8051/] [trunk/] [verif/] [run/] [run_vlog] - Rev 61
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/csh -f
#
# test all programs with ethernet controler
#
set failedi = 0;
set failedx = 0;
set all_testsi = 0;
set all_testsx = 0;
set internal_tests=(gmac_test_1 uart_test_1 spi_test_1)
set external_tests=(gmac_test_1 uart_test_1 spi_test_1)
echo " Compiling with VCS "
ncxlmode -sverilog -I -notice +libext+.v +systemverilogext+.sv -full64 -P /tools/novas/Novas-200704/share/PLI/vcsd2006.06/LINUX64/vcsd.tab /tools/novas/Novas-200704/share/PLI/vcsd2006.06/LINUX64/pli.a +define+SFLASH_SPDUP -f filelist_top.f -l ../log/complie.log
if ($status != 0) then
echo "#### Compile : FAILED"
echo ""
cat ../log/complie.log
exit
else
echo "#### Compile : PASSED"
endif
echo ""
echo "###########################################"
echo " Runing test programs "
echo "###########################################"
set i = 0;
echo "###########################################"
foreach internal_test ($internal_tests)
@ i += 1;
#echo ""
#echo "### Running test ${i}: ${internal_test}"
simv +DUMP +${internal_test} > ../log/run.log
if ($status != 0) then
cat ../log/run.log
exit
else if (`tail -100 ../log/run.log | grep PASSED` == "") then
echo "### test ${i}: ${internal_test} --> FAILED"
@ failedi += 1;
@ all_testsi += 1;
else
echo "### test ${i}: ${internal_test} --> PASSED"
@ all_testsi += 1;
endif
mv ../log/run.log ../log/${internal_test}.log
end
echo "###########################################"
set i = 0;
echo ""
echo "###########################################"
echo "### Test Logs "
foreach internal_test ($internal_tests)
@ i += 1;
echo " test ${i}: ../log/${internal_test}.log"
end
echo "###########################################"
echo ""
echo "###########################################"
echo "### Test Summary "
echo "### "
echo "### Failed $failedi of $all_testsi internal tests"
echo "###########################################"
Go to most recent revision | Compare with Previous | Blame | View Log