|
1 @rem |
|
2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 @rem All rights reserved. |
|
4 @rem This component and the accompanying materials are made available |
|
5 @rem under the terms of "Eclipse Public License v1.0" |
|
6 @rem which accompanies this distribution, and is available |
|
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 @rem |
|
9 @rem Initial Contributors: |
|
10 @rem Nokia Corporation - initial contribution. |
|
11 @rem |
|
12 @rem Contributors: |
|
13 @rem |
|
14 @rem Description: |
|
15 @rem |
|
16 @echo off |
|
17 cls |
|
18 |
|
19 set plat=%1 |
|
20 set build=%2 |
|
21 |
|
22 if $%plat%==$ set plat=WINS |
|
23 if $%build%==$ set build=UDEB |
|
24 |
|
25 :removelogs |
|
26 if not exist \epoc32\%plat%\c\logs mkdir \epoc32\%plat%\c\logs |
|
27 if not exist \epoc32\%plat%\c\logs\testresults mkdir \epoc32\%plat%\c\logs\testresults |
|
28 if not exist \epoc32\%plat%\c\logs\netcon mkdir \epoc32\%plat%\c\logs\netcon |
|
29 if exist \epoc32\%plat%\c\logs\netcon\netcon.txt del \epoc32\%plat%\c\logs\netcon\netcon.txt |
|
30 if exist %temp%\EPOCWIND.OUT del %temp%\EPOCWIND.OUT |
|
31 |
|
32 :build |
|
33 echo. |
|
34 echo Building Test Code... |
|
35 echo. |
|
36 |
|
37 if not exist .\abld.bat call bldmake bldfiles |
|
38 |
|
39 call abld test clean %plat% %build% ts_queue |
|
40 call abld test clean %plat% %build% ts_netcon |
|
41 call abld test clean %plat% %build% ts_netconoom |
|
42 call abld test build %plat% %build% ts_queue |
|
43 call abld test build %plat% %build% ts_netcon |
|
44 call abld test build %plat% %build% ts_netconoom |
|
45 |
|
46 :run |
|
47 echo. |
|
48 echo Running Tests... |
|
49 echo. |
|
50 call \epoc32\release\%plat%\%build%\scheduletest.exe -a \epoc32\release\%plat%\%build%\z\testdata\scripts\ts_netcon.script |
|
51 |
|
52 call \epoc32\release\%plat%\%build%\scheduletest.exe -a \epoc32\release\%plat%\%build%\z\testdata\scripts\ts_queue.script |
|
53 |
|
54 call \epoc32\release\%plat%\%build%\scheduletest.exe -u ts_netconoom |
|
55 |
|
56 :end |
|
57 |
|
58 echo. |
|
59 echo Test Results... |
|
60 echo. |
|
61 call tail \epoc32\%plat%\c\logs\testresults\ts_netcon.htm |
|
62 start \epoc32\%plat%\c\logs\testresults\ts_netcon.htm |
|
63 start \epoc32\%plat%\c\logs\testresults\ts_queue.htm |
|
64 start \epoc32\%plat%\c\logs\testresults\ts_netconoom.htm |
|
65 echo. |
|
66 |
|
67 set plat= |
|
68 set build= |