602
|
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 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.description = """Raptor should keep going and build as much as possible with the -k option specified."""
|
|
22 |
|
|
23 |
command = "sbs -b smoke_suite/test_resources/simple/bld.inf -k"
|
|
24 |
config = " --configpath=test/smoke_suite/test_resources/keepgoing"
|
|
25 |
targets = [
|
|
26 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
|
|
27 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
|
|
28 |
"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
|
|
29 |
"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
|
|
30 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.sym",
|
|
31 |
"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.sym"
|
|
32 |
]
|
|
33 |
buildtargets = [
|
|
34 |
"test_/armv5/udeb/test.o",
|
|
35 |
"test_/armv5/urel/test.o",
|
|
36 |
"test_/armv5/udeb/test.o.d",
|
|
37 |
"test_/armv5/udeb/test3.o.d",
|
|
38 |
"test_/armv5/udeb/test4.o.d",
|
|
39 |
"test_/armv5/udeb/test5.o.d",
|
|
40 |
"test_/armv5/udeb/test1.o.d",
|
|
41 |
"test_/armv5/udeb/test6.o.d",
|
|
42 |
"test_/armv5/udeb/test2.o.d",
|
|
43 |
"test_/armv5/udeb/test3.o",
|
|
44 |
"test_/armv5/udeb/test4.o",
|
|
45 |
"test_/armv5/udeb/test5.o",
|
|
46 |
"test_/armv5/udeb/test1.o",
|
|
47 |
"test_/armv5/udeb/test6.o",
|
|
48 |
"test_/armv5/udeb/test2.o",
|
|
49 |
"test_/armv5/urel/test.o.d",
|
|
50 |
"test_/armv5/urel/test3.o.d",
|
|
51 |
"test_/armv5/urel/test4.o.d",
|
|
52 |
"test_/armv5/urel/test5.o.d",
|
|
53 |
"test_/armv5/urel/test1.o.d",
|
|
54 |
"test_/armv5/urel/test6.o.d",
|
|
55 |
"test_/armv5/urel/test2.o.d",
|
|
56 |
"test_/armv5/urel/test3.o",
|
|
57 |
"test_/armv5/urel/test4.o",
|
|
58 |
"test_/armv5/urel/test5.o",
|
|
59 |
"test_/armv5/urel/test1.o",
|
|
60 |
"test_/armv5/urel/test6.o",
|
|
61 |
"test_/armv5/urel/test2.o",
|
|
62 |
"test_/armv5/udeb/test_udeb_objects.via",
|
|
63 |
"test_/armv5/urel/test_urel_objects.via"
|
|
64 |
]
|
|
65 |
|
|
66 |
# using a non-existent config with -c should build any independent configs
|
|
67 |
t.id = "115a"
|
|
68 |
t.name = "keepgoing_bad_config"
|
|
69 |
t.command = command + " -c armv5 -c armv5.bogus"
|
|
70 |
t.targets = targets
|
|
71 |
t.addbuildtargets("smoke_suite/test_resources/simple/bld.inf", buildtargets)
|
|
72 |
t.mustmatch = ["sbs: error: Unknown build variant 'bogus'"]
|
|
73 |
t.warnings = 0
|
|
74 |
t.errors = 1
|
|
75 |
t.returncode = 1
|
|
76 |
t.run()
|
|
77 |
|
|
78 |
# using groups with bad sub-groups should build any independent groups
|
|
79 |
t.id = "115b"
|
|
80 |
t.name = "keepgoing_bad_subgroup"
|
|
81 |
t.command = command + config + " -c lots_of_products"
|
|
82 |
t.mustmatch = ["Unknown reference 'qwertyuio'",
|
|
83 |
"Unknown reference 'asdfghjkl'",
|
|
84 |
"Unknown reference 'zxcvbnm_p'"]
|
|
85 |
t.warnings = 0
|
|
86 |
t.errors = 3
|
|
87 |
t.returncode = 1
|
|
88 |
t.run()
|
|
89 |
|
|
90 |
# using groups with bad sub-sub-groups should build any independent groups
|
|
91 |
t.id = "115c"
|
|
92 |
t.name = "keepgoing_bad_subsubgroup"
|
|
93 |
t.command = command + config + " -c lots_of_products_2"
|
|
94 |
t.mustmatch = ["Unknown reference 'qwertyuio'",
|
|
95 |
"Unknown reference 'asdfghjkl'",
|
|
96 |
"Unknown reference 'zxcvbnm_p'"]
|
|
97 |
t.warnings = 0
|
|
98 |
t.errors = 3
|
|
99 |
t.returncode = 1
|
|
100 |
t.run()
|
|
101 |
|
|
102 |
# summarise
|
|
103 |
t.id = "115"
|
|
104 |
t.name = "keepgoing"
|
|
105 |
t.print_result()
|
|
106 |
return t
|