13
|
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 |
|
|
19 |
def run():
|
|
20 |
t = SmokeTest()
|
|
21 |
t.id = "48"
|
|
22 |
t.name = "sysdef_layers"
|
|
23 |
t.usebash = True
|
|
24 |
t.description = "Test system_definition.xml layer processing and log reporting"
|
|
25 |
t.command = 'sbs -f- -s smoke_suite/test_resources/sysdef/system_definition_order_layer_test.xml ' + \
|
|
26 |
'-l "Metadata Export" -l "Build Generated Source" -l "Component with Layer Dependencies" -o'
|
|
27 |
t.targets = [
|
|
28 |
"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.inf",
|
|
29 |
"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.mmh",
|
|
30 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
|
|
31 |
"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc",
|
|
32 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc",
|
|
33 |
"$(EPOCROOT)/epoc32/include/helloworld.rsg",
|
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe",
|
|
35 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.sym",
|
|
36 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map",
|
|
37 |
"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe",
|
|
38 |
"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.sym",
|
|
39 |
"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map",
|
|
40 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
|
|
41 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe",
|
|
42 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc",
|
|
43 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.rsc",
|
|
44 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
|
|
45 |
"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe",
|
|
46 |
"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map",
|
|
47 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc",
|
|
48 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc",
|
|
49 |
]
|
|
50 |
t.addbuildtargets('smoke_suite/test_resources/sysdef/build_gen_source/bld.inf', [
|
28
|
51 |
"helloworld_/helloworld_HelloWorld.rsc.rpp"
|
13
|
52 |
])
|
|
53 |
t.addbuildtargets('smoke_suite/test_resources/sysdef/dependent/bld.inf', [
|
|
54 |
"helloworld_exe/armv5/udeb/HelloWorld_Application.o",
|
|
55 |
"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o",
|
|
56 |
"helloworld_exe/armv5/udeb/HelloWorld_AppView.o",
|
|
57 |
"helloworld_exe/armv5/udeb/HelloWorld_Document.o",
|
|
58 |
"helloworld_exe/armv5/udeb/HelloWorld_Main.o",
|
|
59 |
"helloworld_exe/armv5/urel/HelloWorld_Application.o",
|
|
60 |
"helloworld_exe/armv5/urel/HelloWorld_AppUi.o",
|
|
61 |
"helloworld_exe/armv5/urel/HelloWorld_AppView.o",
|
|
62 |
"helloworld_exe/armv5/urel/HelloWorld_Document.o",
|
|
63 |
"helloworld_exe/armv5/urel/HelloWorld_Main.o",
|
|
64 |
"helloworld_exe/winscw/udeb/HelloWorld_Application.o",
|
|
65 |
"helloworld_exe/winscw/udeb/HelloWorld_AppUi.o",
|
|
66 |
"helloworld_exe/winscw/udeb/HelloWorld_AppView.o",
|
|
67 |
"helloworld_exe/winscw/udeb/HelloWorld_Document.o",
|
|
68 |
"helloworld_exe/winscw/udeb/HelloWorld_Main.o",
|
|
69 |
"helloworld_exe/winscw/udeb/helloworld.UID.CPP",
|
|
70 |
"helloworld_exe/winscw/udeb/helloworld_UID_.o",
|
|
71 |
"helloworld_exe/winscw/urel/HelloWorld_Application.o",
|
|
72 |
"helloworld_exe/winscw/urel/HelloWorld_AppUi.o",
|
|
73 |
"helloworld_exe/winscw/urel/HelloWorld_AppView.o",
|
|
74 |
"helloworld_exe/winscw/urel/HelloWorld_Document.o",
|
|
75 |
"helloworld_exe/winscw/urel/HelloWorld_Main.o",
|
|
76 |
"helloworld_exe/winscw/urel/helloworld.UID.CPP",
|
|
77 |
"helloworld_exe/winscw/urel/helloworld_UID_.o",
|
28
|
78 |
"helloworld_reg_exe/helloworld_reg_HelloWorld_reg.rsc.rpp"
|
13
|
79 |
])
|
|
80 |
t.countmatch = [
|
28
|
81 |
["<recipe .*layer='Component with Layer Dependencies' component='dependent'.*>", 33],
|
|
82 |
["<recipe .*layer='Build Generated Source' component='build generated source'.*>", 3]
|
13
|
83 |
]
|
|
84 |
t.run()
|
|
85 |
return t
|