comparison gpf/BIN/setup_line_coverage.bat @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 @echo on
2
3 @rem if no prameters, print usage text
4 @if (%2)==(%3) (@goto labelusage)
5
6 @echo Clearing previously set variables ...
7 @if exist %srcfiles% (unset srcfiles)
8 @if exist %exe% (unset exe)
9 @if exist %outdir% (unset outdir)
10 @if exist %exedir% (unset exedir)
11 @if exist %mapfile% (unset mapfile)
12 @if exist %methode% (unset method)
13 @if exist %arg1% (unset arg1)
14 @if exist %arg2% (unset arg2)
15 @echo Done
16
17 @set method=LV
18 @set arg1=LV
19 @set arg2=/SC
20 @set rsp=%1
21 @set outpath_ext=%2
22
23 call profile_config.bat %3 no_skip %outpath_ext%
24
25 @rem set outdir=%outdir%%outpath_ext%
26 @rem echo %outdir%
27
28 copy %exedir%%exe%.exe %outdir%
29 copy %mapfile% %outdir%
30
31 @rem unset srcfiles
32
33 @rem not to be used when using an rsp file.
34 @rem for /f %a in (%outdir%%1) do ( @set srcfiles=%srcfiles% /INC %a)
35 @rem PREP /%method% /OT %outdir%%exe% /OM /EXCALL %srcfiles% %outdir%%exe%
36
37 PREP /%method% /OT %outdir%%exe% /OM /EXCALL @%outdir%%rsp% %outdir%%exe%
38
39 @if errorlevel == 1622 goto label1622
40 @echo ^n
41 @echo You are now ready to start the actual profiling !
42 goto done
43
44
45 @rem Error handling.
46
47 :label1622
48 @echo ////////////////////////////////////////////////////////////////////////
49 @echo ERROR: You have to mark which line in the sourcefiles, which are to
50 @echo be profiled e.g. by adding (0-0) to the end of sourcefile for all lines.
51 @echo ////////////////////////////////////////////////////////////////////////
52 @goto done
53
54 :labelusage
55 @echo ^n
56 @echo usage: setup_line_coverage file_list.rsp path_ext ps_name
57 @echo where:
58 @echo ^n
59 @echo -file_list.lst : text file containing list of files to be profiled.
60 @echo -path_ext : the relative directory path to the entity test files (umts base: \g23m\condat\ms\src\, gprs base :\g23m\condat\ms\).
61 @echo -ps_name : the name of the protocol stack (e.g. umts, gprs, gprs_wap, gprs_bt, teststack).
62 @echo ^n
63 @echo Examples: setup_line_coverage.bat sndcp.rsp doc\test\ gprs
64 @echo setup_line_coverage.bat sndcp.rsp sndcp\test_usm\ umts
65 @echo setup_line_coverage.bat xx_tdc.rsp xx_tdc\ teststack
66 @echo ^n
67 @echo For more information on how to perform the profiling please refer to the user guide: \gpf\doc\test_coverage\8434_521_test_coverage_user_guide.doc
68 @echo ^n
69 @goto done
70
71 :done