3
|
1 |
#
|
|
2 |
# Copyright (c) 2009 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 AntiTargetSmokeTest
|
|
18 |
|
|
19 |
def run():
|
|
20 |
t = AntiTargetSmokeTest()
|
|
21 |
t.usebash = True
|
|
22 |
result = AntiTargetSmokeTest.PASS
|
|
23 |
|
|
24 |
command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c %s -f-"
|
|
25 |
maintargets = [
|
|
26 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym",
|
|
27 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym",
|
|
28 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
|
|
29 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
|
|
30 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll",
|
|
31 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll"
|
|
32 |
]
|
|
33 |
abiv1libtargets = [
|
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.lib",
|
|
35 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.lib"
|
|
36 |
]
|
|
37 |
buildtargets = [
|
|
38 |
"createstaticdll_dll/armv5/udeb/CreateStaticDLL.o",
|
|
39 |
"createstaticdll_dll/armv5/urel/CreateStaticDLL.o"
|
|
40 |
]
|
|
41 |
mustmatch = [
|
|
42 |
r".*\busrt\d_\d\.lib\b.*",
|
|
43 |
r".*\bscppnwdl\.dso\b.*"
|
|
44 |
]
|
|
45 |
mustnotmatch = [
|
|
46 |
".*ksrt.*"
|
|
47 |
]
|
|
48 |
|
|
49 |
# Note that ABIv1 import libraries are only generated for RVCT-based armv5
|
|
50 |
# builds on Windows
|
|
51 |
|
|
52 |
t.id = "0009a"
|
|
53 |
t.name = "dll_armv5_rvct"
|
|
54 |
t.command = command % "armv5"
|
|
55 |
t.targets = maintargets[:] # Shallow, as we optionally extend later and then re-use
|
|
56 |
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets)
|
|
57 |
t.mustmatch = mustmatch
|
|
58 |
t.mustnotmatch = mustnotmatch
|
|
59 |
t.run("linux")
|
|
60 |
if t.result == AntiTargetSmokeTest.SKIP:
|
|
61 |
t.targets.extend(abiv1libtargets)
|
|
62 |
t.run("windows")
|
|
63 |
if t.result == AntiTargetSmokeTest.FAIL:
|
|
64 |
result = AntiTargetSmokeTest.FAIL
|
|
65 |
|
|
66 |
t.id = "0009b"
|
|
67 |
t.name = "dll_armv5_clean"
|
|
68 |
t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5 clean"
|
|
69 |
t.targets = []
|
|
70 |
t.mustmatch = []
|
|
71 |
t.mustnotmatch = []
|
|
72 |
t.run()
|
|
73 |
if t.result == AntiTargetSmokeTest.FAIL:
|
|
74 |
result = AntiTargetSmokeTest.FAIL
|
|
75 |
|
|
76 |
t.id = "0009c"
|
|
77 |
t.name = "dll_armv5_gcce"
|
|
78 |
t.command = command % "gcce_armv5"
|
|
79 |
t.targets = maintargets
|
|
80 |
t.antitargets = abiv1libtargets
|
|
81 |
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets)
|
|
82 |
t.mustmatch = mustmatch
|
|
83 |
t.mustnotmatch = mustnotmatch
|
|
84 |
t.run()
|
|
85 |
if t.result == AntiTargetSmokeTest.FAIL:
|
|
86 |
result = AntiTargetSmokeTest.FAIL
|
|
87 |
|
|
88 |
t.id = "9"
|
|
89 |
t.name = "dll_armv5"
|
|
90 |
t.result = result
|
|
91 |
t.print_result()
|
|
92 |
return t
|