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 10

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
echo " Compiling with MODELSIM in $1 Mode "
14
 
15
./compile.modelsim $1 | tee ../log/$1_complie.log
16
 
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
        vsim -do run.do -c tb_top +${run_test} | tee  ../log/run.log
41
        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
        mv ../log/run.log ../log/$1_${run_test}.log
54
 
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
          echo "   test ${i}: ../log/$1_${run_test}.log"
67
 
68
end
69
    echo "###########################################"
70
 
71
 
72
echo ""
73
echo "###########################################"
74
echo "###  Test Summary                          "
75
echo "### "
76
echo "### Failed $failedm of $all_testsm $1 tests"
77
echo "###########################################"
78
 

powered by: WebSVN 2.1.0

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