OpenCores
URL https://opencores.org/ocsvn/sdr_ctrl/sdr_ctrl/trunk

Subversion Repositories sdr_ctrl

[/] [sdr_ctrl/] [trunk/] [verif/] [run/] [run_modelsim] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 dinesha
#!/bin/csh -f
2
#
3
# test all programs with SDRAM CONTROLLER
4
#
5
 
6
set failedm = 0;
7
set all_testsm = 0;
8
 
9
set sdr_tests =(basic_test1 )
10
#set misc_tests=( )
11
 
12
 
13 29 dinesha
echo " Compiling with MODELSIM in $1 $2 Mode "
14 5 dinesha
 
15 29 dinesha
./compile.modelsim $1 $2 | tee ../log/$1_$2_complie.log
16 5 dinesha
 
17
 
18
if ($status != 0) then
19
  echo "#### Compile : FAILED"
20
  echo ""
21
  cat ../log/complie.log
22
  exit
23
else
24
  echo "#### Compile : PASSED"
25
endif
26
 
27
 
28
echo ""
29
echo "###########################################"
30
echo " Runing GMAC/SPI/UART test programs "
31
echo "###########################################"
32
 
33
set i = 0;
34
        echo "###########################################"
35
foreach run_test ($sdr_tests)
36
        @ i += 1;
37
        #echo ""
38
        echo "### Running test ${i}: ${run_test}"
39
 
40 29 dinesha
        vsim -do run.do -c tb_$1 +${run_test} | tee  ../log/run.log
41 5 dinesha
        if ($status != 0) then
42
          cat ../log/run.log
43
          exit
44
        else if (`tail ../log/run.log | grep PASSED` == "") then
45
          echo "### test ${i}: ${run_test} --> FAILED"
46
          @ failedm += 1;
47
          @ all_testsm += 1;
48
        else
49
          echo "### test ${i}: ${run_test} --> PASSED"
50
          @ all_testsm += 1;
51
        endif
52
 
53 29 dinesha
        mv ../log/run.log ../log/$1_$2_${run_test}.log
54 5 dinesha
 
55
 
56
end
57
    echo "###########################################"
58
 
59
 
60
set i = 0;
61
echo ""
62
echo "###########################################"
63
echo "###  Test Logs                            "
64
foreach run_test ($sdr_tests)
65
          @ i += 1;
66 29 dinesha
          echo "   test ${i}: ../log/$1_$2_${run_test}.log"
67 5 dinesha
 
68
end
69
    echo "###########################################"
70
 
71
 
72
echo ""
73
echo "###########################################"
74
echo "###  Test Summary                          "
75
echo "### "
76 29 dinesha
echo "### Failed $failedm of $all_testsm $2 tests"
77 5 dinesha
echo "###########################################"
78
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.