|
1 :: |
|
2 :: Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 :: All rights reserved. |
|
4 :: This component and the accompanying materials are made available |
|
5 :: under the terms of "Eclipse Public License v1.0" |
|
6 :: which accompanies this distribution, and is available |
|
7 :: at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 :: |
|
9 :: Initial Contributors: |
|
10 :: Nokia Corporation - initial contribution. |
|
11 :: |
|
12 :: Contributors: |
|
13 :: |
|
14 :: Description: |
|
15 :: Script running Application Settings UI test cases with CTC analysis. |
|
16 |
|
17 @echo off |
|
18 |
|
19 :: ----------------------------------------------------------------------------- |
|
20 :: Instructions |
|
21 :: ----------------------------------------------------------------------------- |
|
22 :: |
|
23 :: Remember to use the test CommsDat that can be set and restored with the |
|
24 :: helper scripts: |
|
25 :: - commsdat_set.bat |
|
26 :: - commsdat_restore.bat |
|
27 |
|
28 ::----------------------------------------------------------------------------- |
|
29 :: Set the local variables |
|
30 ::----------------------------------------------------------------------------- |
|
31 |
|
32 :: Cm Application Settings UI base directory |
|
33 set cmapplsettingsui_dir=..\..\.. |
|
34 pushd %cmapplsettingsui_dir% |
|
35 |
|
36 :: CTC instrumentation excludes |
|
37 set ctc_excludes=-C EXCLUDE=* -C NO_EXCLUDE=src\*.cpp |
|
38 |
|
39 |
|
40 ::----------------------------------------------------------------------------- |
|
41 :: Remove old coverage data |
|
42 ::----------------------------------------------------------------------------- |
|
43 |
|
44 echo Cleaning up... |
|
45 del MON.* ctcerr.txt profile.txt |
|
46 rd /s /q CTCHTML |
|
47 echo ...done |
|
48 |
|
49 ::----------------------------------------------------------------------------- |
|
50 :: Build & instrument code |
|
51 ::----------------------------------------------------------------------------- |
|
52 |
|
53 echo Building code and instrumenting.. |
|
54 call del MON.* ctcerr.txt profile.txt |
|
55 call make distclean |
|
56 call qmake |
|
57 call ctcwrap -i d -2comp %ctc_excludes% sbs -c winscw_udeb |
|
58 echo ...done |
|
59 |
|
60 ::----------------------------------------------------------------------------- |
|
61 :: Build test code |
|
62 ::----------------------------------------------------------------------------- |
|
63 |
|
64 echo Building test code... |
|
65 call cd tsrc\ut |
|
66 call make distclean |
|
67 call qmake |
|
68 call sbs -c winscw_udeb |
|
69 echo ...done |
|
70 |
|
71 ::----------------------------------------------------------------------------- |
|
72 :: Execute the tests |
|
73 ::----------------------------------------------------------------------------- |
|
74 |
|
75 echo Running tests.. |
|
76 cd ..\.. |
|
77 call \epoc32\release\winscw\udeb\testcmapplsettingsui.exe |
|
78 echo ...done |
|
79 |
|
80 ::----------------------------------------------------------------------------- |
|
81 :: Create coverage results |
|
82 ::----------------------------------------------------------------------------- |
|
83 |
|
84 echo Creating results... |
|
85 call ctcpost -p profile.txt |
|
86 call ctc2html -i profile.txt |
|
87 echo ...done |
|
88 |
|
89 popd |