author | Jon Chatten |
Mon, 13 Sep 2010 14:04:04 +0100 | |
changeset 641 | 8dd670a9f34f |
parent 625 | a1925fb7753a |
child 674 | 37ee82a83d43 |
permissions | -rw-r--r-- |
591 | 1 |
# |
2 |
# Copyright (c) 2009-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 the License "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 |
# |
|
16 |
||
17 |
from raptor_tests import SmokeTest |
|
18 |
import os |
|
19 |
||
20 |
def run(): |
|
21 |
t = SmokeTest() |
|
22 |
t.id = "77" |
|
23 |
t.name = "whatlog_cache" |
|
24 |
t.description = """Test sbsv2cache.py cache file generation using Raptor .whatlog variant output. |
|
25 |
This is currently a Windows only activity due to CBR tools restrictions.""" |
|
26 |
t.usebash = True |
|
27 |
||
28 |
if 'SBS_PYTHON' in os.environ: |
|
29 |
pythonRun = "$(SBS_PYTHON)" |
|
30 |
else: |
|
31 |
pythonRun = "$(SBS_HOME)/win32/python264/python.exe" |
|
32 |
||
33 |
# Build something using the .whatlog variant. Take the build log and give it to sbsv2cache.py, deducing |
|
34 |
# the location of the generated cache file from the verbose output. If generated, dump the cache file to |
|
35 |
# STDOUT so we can validate the content in this test script. Clean up when finished. |
|
36 |
t.command = """sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -f ${SBSLOGFILE} -m ${SBSMAKEFILE} -c armv5.whatlog -c winscw.whatlog |
|
37 |
CACHEFILE=`%s $SBS_HOME/bin/sbsv2cache.py -v -s -o $EPOCROOT/epoc32/build/abldcache -l $SBSLOGFILE | sed -n \'s#Creating: ##p\'` |
|
38 |
if [ -n \"${CACHEFILE:+x}\" ]; then |
|
39 |
cat $CACHEFILE |
|
40 |
fi |
|
41 |
rm -r $EPOCROOT/epoc32/build/abldcache""" % pythonRun |
|
42 |
||
43 |
t.targets = [ |
|
44 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm", |
|
45 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm", |
|
46 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm", |
|
47 |
"$(EPOCROOT)/epoc32/include/helloworld.rsg", |
|
48 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc", |
|
49 |
"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc", |
|
50 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.rsc", |
|
51 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc", |
|
52 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc", |
|
53 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc", |
|
54 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe", |
|
55 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map", |
|
56 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe", |
|
57 |
"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe", |
|
58 |
"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map", |
|
59 |
"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe", |
|
60 |
"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map" |
|
61 |
] |
|
62 |
t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [ |
|
63 |
"helloworld_exe/helloworld.mbm_bmconvcommands", |
|
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
64 |
"helloworld_exe/helloworld_HelloWorld.rsc.rpp", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
65 |
"helloworld_exe/helloworld_HelloWorld.rsc.d", |
591 | 66 |
"helloworld_exe/armv5/udeb/HelloWorld_Application.o", |
67 |
"helloworld_exe/armv5/udeb/HelloWorld_Application.o.d", |
|
68 |
"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o", |
|
69 |
"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o.d", |
|
70 |
"helloworld_exe/armv5/udeb/HelloWorld_AppView.o", |
|
71 |
"helloworld_exe/armv5/udeb/HelloWorld_AppView.o.d", |
|
72 |
"helloworld_exe/armv5/udeb/HelloWorld_Document.o", |
|
73 |
"helloworld_exe/armv5/udeb/HelloWorld_Document.o.d", |
|
74 |
"helloworld_exe/armv5/udeb/HelloWorld_Main.o", |
|
75 |
"helloworld_exe/armv5/udeb/HelloWorld_Main.o.d", |
|
76 |
"helloworld_exe/armv5/udeb/helloworld_udeb_objects.via", |
|
77 |
"helloworld_exe/armv5/urel/HelloWorld_Application.o", |
|
78 |
"helloworld_exe/armv5/urel/HelloWorld_Application.o.d", |
|
79 |
"helloworld_exe/armv5/urel/HelloWorld_AppUi.o", |
|
80 |
"helloworld_exe/armv5/urel/HelloWorld_AppUi.o.d", |
|
81 |
"helloworld_exe/armv5/urel/HelloWorld_AppView.o", |
|
82 |
"helloworld_exe/armv5/urel/HelloWorld_AppView.o.d", |
|
83 |
"helloworld_exe/armv5/urel/HelloWorld_Document.o", |
|
84 |
"helloworld_exe/armv5/urel/HelloWorld_Document.o.d", |
|
85 |
"helloworld_exe/armv5/urel/HelloWorld_Main.o", |
|
86 |
"helloworld_exe/armv5/urel/HelloWorld_Main.o.d", |
|
87 |
"helloworld_exe/armv5/urel/helloworld_urel_objects.via", |
|
88 |
"helloworld_exe/winscw/udeb/helloworld.UID.CPP", |
|
89 |
"helloworld_exe/winscw/udeb/HelloWorld_Application.dep", |
|
90 |
"helloworld_exe/winscw/udeb/HelloWorld_Application.o", |
|
91 |
"helloworld_exe/winscw/udeb/HelloWorld_Application.o.d", |
|
92 |
"helloworld_exe/winscw/udeb/HelloWorld_AppUi.dep", |
|
93 |
"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o", |
|
94 |
"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o.d", |
|
95 |
"helloworld_exe/winscw/udeb/HelloWorld_AppView.dep", |
|
96 |
"helloworld_exe/winscw/udeb/HelloWorld_AppView.o", |
|
97 |
"helloworld_exe/winscw/udeb/HelloWorld_AppView.o.d", |
|
98 |
"helloworld_exe/winscw/udeb/HelloWorld_Document.dep", |
|
99 |
"helloworld_exe/winscw/udeb/HelloWorld_Document.o", |
|
100 |
"helloworld_exe/winscw/udeb/HelloWorld_Document.o.d", |
|
101 |
"helloworld_exe/winscw/udeb/HelloWorld_Main.dep", |
|
102 |
"helloworld_exe/winscw/udeb/HelloWorld_Main.o", |
|
103 |
"helloworld_exe/winscw/udeb/HelloWorld_Main.o.d", |
|
104 |
"helloworld_exe/winscw/udeb/helloworld_UID_.dep", |
|
105 |
"helloworld_exe/winscw/udeb/helloworld_UID_.o", |
|
106 |
"helloworld_exe/winscw/udeb/helloworld_UID_.o.d", |
|
107 |
"helloworld_exe/winscw/urel/helloworld.UID.CPP", |
|
108 |
"helloworld_exe/winscw/urel/HelloWorld_Application.dep", |
|
109 |
"helloworld_exe/winscw/urel/HelloWorld_Application.o", |
|
110 |
"helloworld_exe/winscw/urel/HelloWorld_Application.o.d", |
|
111 |
"helloworld_exe/winscw/urel/HelloWorld_AppUi.dep", |
|
112 |
"helloworld_exe/winscw/urel/HelloWorld_AppUi.o", |
|
113 |
"helloworld_exe/winscw/urel/HelloWorld_AppUi.o.d", |
|
114 |
"helloworld_exe/winscw/urel/HelloWorld_AppView.dep", |
|
115 |
"helloworld_exe/winscw/urel/HelloWorld_AppView.o", |
|
116 |
"helloworld_exe/winscw/urel/HelloWorld_AppView.o.d", |
|
117 |
"helloworld_exe/winscw/urel/HelloWorld_Document.dep", |
|
118 |
"helloworld_exe/winscw/urel/HelloWorld_Document.o", |
|
119 |
"helloworld_exe/winscw/urel/HelloWorld_Document.o.d", |
|
120 |
"helloworld_exe/winscw/urel/HelloWorld_Main.dep", |
|
121 |
"helloworld_exe/winscw/urel/HelloWorld_Main.o", |
|
122 |
"helloworld_exe/winscw/urel/HelloWorld_Main.o.d", |
|
123 |
"helloworld_exe/winscw/urel/helloworld_UID_.dep", |
|
124 |
"helloworld_exe/winscw/urel/helloworld_UID_.o", |
|
125 |
"helloworld_exe/winscw/urel/helloworld_UID_.o.d", |
|
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
126 |
"helloworld_reg_exe/helloworld_reg_HelloWorld_reg.rsc.d" |
591 | 127 |
]) |
128 |
t.countmatch = [ |
|
129 |
["\$self->{abldcache}->{.*\\\\test\\\\smoke_suite\\\\test_resources\\\\simple_gui target (armv5|winscw) (udeb|urel) -what\'} =", 4], |
|
130 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\data\\\\\\\\z\\\\\\\\private\\\\\\\\10003a3f\\\\\\\\apps\\\\\\\\helloworld_reg.rsc\'", 4], |
|
131 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\data\\\\\\\\z\\\\\\\\resource\\\\\\\\apps\\\\\\\\helloworld.mbm\'", 4], |
|
132 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\data\\\\\\\\z\\\\\\\\resource\\\\\\\\apps\\\\\\\\helloworld.rsc\'", 4], |
|
133 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\include\\\\\\\\helloworld.rsg\'", 4], |
|
134 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\release\\\\\\\\(armv5|winscw)\\\\\\\\(udeb|urel)\\\\\\\\helloworld.exe\'",4], |
|
135 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\release\\\\\\\\(armv5|winscw)\\\\\\\\(udeb|urel)\\\\\\\\helloworld.exe.map\'", 3], |
|
136 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\release\\\\\\\\winscw\\\\\\\\(udeb|urel)\\\\\\\\z\\\\\\\\private\\\\\\\\10003a3f\\\\\\\\apps\\\\\\\\helloworld_reg.rsc\'", 2], |
|
137 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\release\\\\\\\\winscw\\\\\\\\(udeb|urel)\\\\\\\\z\\\\\\\\resource\\\\\\\\apps\\\\\\\\helloworld.mbm\'", 2], |
|
138 |
[".*\'.*\\\\\\\\epoc32\\\\\\\\release\\\\\\\\winscw\\\\\\\\(udeb|urel)\\\\\\\\z\\\\\\\\resource\\\\\\\\apps\\\\\\\\helloworld.rsc\'", 2], |
|
139 |
["\$self->{abldcache}->{\'plats\'} =", 1], |
|
140 |
[".*\'ARMV5\'", 1], |
|
141 |
[".*\'WINSCW\'", 1] |
|
142 |
] |
|
143 |
t.run("windows") |
|
144 |
return t |