FreeCalypso > hg > leo2moko-debug
comparison gpf/BIN/debug/pco2.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 off | |
2 setlocal | |
3 rem ----------------------------------------------------------------------------- | |
4 rem Project : PCO | |
5 rem Modul : | |
6 rem ----------------------------------------------------------------------------- | |
7 rem Copyright 2005 Texas Instruments Deutschland GmbH | |
8 rem All rights reserved. | |
9 rem | |
10 rem This file is confidential and a trade secret of Texas | |
11 rem Instruments Berlin, AG | |
12 rem The receipt of or possession of this file does not convey | |
13 rem any rights to reproduce or disclose its contents or to | |
14 rem manufacture, use, or sell anything it may describe, in | |
15 rem whole, or in part, without the specific written consent of | |
16 rem Texas Instruments Berlin, AG. | |
17 rem ----------------------------------------------------------------------------- | |
18 rem | Purpose : general start batch file | |
19 rem ----------------------------------------------------------------------------- | |
20 | |
21 set PATH=..\tools\bin;..\..\tools\bin\debug;..\..\tools\bin;%PATH% | |
22 | |
23 @if x%1 == x-h goto usage | |
24 | |
25 rem start /min cms -n | |
26 | |
27 @if x%1 == xgui goto gui | |
28 @if x%1 == xnogui goto nogui | |
29 @if x%1 == xguidebug goto gui_start | |
30 | |
31 :gui | |
32 @if x%GPF% == x goto gui_direct | |
33 if EXIST pco.ini goto gui_direct | |
34 if EXIST pco2.bat goto gui_direct | |
35 echo starting from %GPF%\BIN | |
36 cd %GPF%\BIN | |
37 | |
38 :gui_direct | |
39 @if x%1 == xgui shift | |
40 rem set cfg directory | |
41 set cfg_dir=..\cfg | |
42 if NOT EXIST ..\cfg\main.svc.default set cfg_dir=..\..\cfg | |
43 | |
44 @if x%1 == x goto gui_start | |
45 set pco_cfg=%1 | |
46 | |
47 :gui_start | |
48 rem copy default configs | |
49 if NOT EXIST %cfg_dir%\main.svc copy %cfg_dir%\main.svc.default %cfg_dir%\main.svc | |
50 if NOT EXIST %cfg_dir%\syst.svc copy %cfg_dir%\syst.svc.default %cfg_dir%\syst.svc | |
51 if NOT EXIST Multiplexer.ini copy %cfg_dir%\Multiplexer.ini.default Multiplexer.ini | |
52 if NOT EXIST TraceMultiplexer.ini copy %cfg_dir%\TraceMultiplexer.ini.default TraceMultiplexer.ini | |
53 grep -c "\[Application\]" TraceMultiplexer.ini >nul | |
54 if "%ERRORLEVEL%" == "1" type %cfg_dir%\TraceMultiplexer.ini.default >> TraceMultiplexer.ini | |
55 | |
56 if EXIST ..\ccddata\ccddata_G23M_333_S64.dll goto ccddata_ok | |
57 rem copy precompiled ccddata-DLLs | |
58 mkdir ..\ccddata 2>nul | |
59 copy \\dbgs2\deveng\cc\gpf\projects\pco\ccddata\*.* ..\ccddata 2>nul >nul | |
60 | |
61 :ccddata_ok | |
62 rem copy cond_decoder | |
63 if NOT EXIST cond_decoder.exe copy \\dbgs2\deveng\cc\gpf\projects\pco\delivery\L1_trace_decoder\cond_decoder.exe cond_decoder.exe 2>nul >nul | |
64 | |
65 if EXIST TestHarnessPCO.bat goto testharness_ok | |
66 rem unzip testharness | |
67 unzip TestHarnessPCO.zip >nul | |
68 | |
69 :testharness_ok | |
70 rem call controller with environment and evtl. default config options | |
71 start pco_ctrl -env %pco_cfg% | |
72 goto end | |
73 | |
74 :nogui | |
75 start pcod | |
76 sleep 3 | |
77 @if x%2 == x goto defstart | |
78 @if x%2 == xreplay goto replay | |
79 pcoc start %2 | |
80 goto view | |
81 :replay | |
82 @if x%3 == x goto defreplay | |
83 pcoc open %3 | |
84 goto view | |
85 :defreplay | |
86 pcoc open pcotest | |
87 goto view | |
88 :defstart | |
89 pcoc start pcotest | |
90 :view | |
91 start pco_view | |
92 goto end | |
93 | |
94 :usage | |
95 @echo usage: | |
96 @echo "pco2 [-h|" | |
97 @echo " [gui|guidebug] |" | |
98 @echo " [nogui [[replay] [<test-case-name>]]]" | |
99 | |
100 :end | |
101 endlocal |