URL
https://opencores.org/ocsvn/turbo8051/turbo8051/trunk
Subversion Repositories turbo8051
[/] [turbo8051/] [trunk/] [verif/] [run/] [run_vcs] - Rev 52
Compare with Previous | Blame | View Log
#!/bin/csh -f## test all programs with ethernet controler#set failedm = 0;set failedi = 0;set failedx = 0;set all_testsm = 0;set all_testsi = 0;set all_testsx = 0;set misc_tests=(gmac_test_2 gmac_test_1 uart_test_1 spi_test_1)#set misc_tests=( )set risc_ext_tests=(fib divmul sort gcd cast xram)set risc_int_tests=(fib divmul sort gcd cast xram)echo " Compiling with VCS "vcs +v2k -Mupdate -sverilog +vcs+lic+wait +plusarg_save -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.logif ($status != 0) thenecho "#### Compile : FAILED"echo ""cat ../log/complie.logexitelseecho "#### Compile : PASSED"endifecho ""echo "###########################################"echo " Runing GMAC/SPI/UART test programs "echo "###########################################"set i = 0;echo "###########################################"foreach misc_test ($misc_tests)@ i += 1;#echo ""echo "### Running test ${i}: ${misc_test}"simv +DUMP +${misc_test} > ../log/run.logif ($status != 0) thencat ../log/run.logexitelse if (`tail -100 ../log/run.log | grep PASSED` == "") thenecho "### test ${i}: ${misc_test} --> FAILED"@ failedm += 1;@ all_testsm += 1;elseecho "### test ${i}: ${misc_test} --> PASSED"@ all_testsm += 1;endifmv ../log/run.log ../log/${misc_test}.logendecho "###########################################"set i = 0;echo ""echo "###########################################"echo "### Test Logs "foreach misc_test ($misc_tests)@ i += 1;echo " test ${i}: ../log/${misc_test}.log"endecho "###########################################"echo ""echo ""echo "###########################################"echo "### tesing 8051 programs from external rom"echo "###########################################"set i = 0;echo "###########################################"foreach risc_ext_test ($risc_ext_tests)@ i += 1;#echo ""\cp ../testcase/dat/${risc_ext_test}.dat ./dat/oc8051_xrom.insimv +DUMP +EXTERNAL_ROM > ../log/run.logif ($status != 0) thencat ../log/run.logexitelse if (`tail -100 ../log/run.log | grep Passed` == "") thenecho "### test ${i}: ${risc_ext_test} --> FAILED"@ failedx += 1;@ all_testsx += 1;elseecho "### test ${i}: ${risc_ext_test} --> PASSED"@ all_testsx += 1;endifmv ../log/run.log ../log/x_${risc_ext_test}.logendecho "###########################################"echo ""echo ""echo "###########################################"echo "### tesing 8051 programs from internal rom"echo "###########################################"set i = 0;echo "###########################################"foreach risc_int_test ($risc_int_tests)@ i += 1;#echo ""\cp ../testcase/dat/${risc_int_test}.dat ./dat/oc8051_xrom.insimv +DUMP +INTERNAL_ROM > ../log/run.logif ($status != 0) thencat ../log/run.logexitelse if (`tail -100 ../log/run.log | grep Passed` == "") thenecho "### test ${i}: ${risc_int_test} --> FAILED"@ failedi += 1;@ all_testsi += 1;elseecho "### test ${i}: ${risc_int_test} --> PASSED"@ all_testsi += 1;endifmv ../log/run.log ../log/x_${risc_int_test}.logendecho "###########################################"echo ""echo "###########################################"echo "### Test Summary "echo "### "echo "### Failed $failedm of $all_testsm misc tests"echo "### Failed $failedx of $all_testsx external rom tests"echo "### Failed $failedi of $all_testsi internal rom tests"echo "###########################################"
