author | Richard Taylor <richard.i.taylor@nokia.com> |
Fri, 30 Apr 2010 16:52:27 +0100 | |
branch | wip |
changeset 506 | efe4a967495a |
parent 3 | e1eecf4d390d |
permissions | -rw-r--r-- |
3 | 1 |
# |
506
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
2 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 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 |
||
23 |
command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c %s -f-" |
|
24 |
maintargets = [ |
|
25 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", |
|
26 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", |
|
27 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso", |
|
28 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso", |
|
29 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll", |
|
30 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll" |
|
31 |
] |
|
32 |
abiv1libtargets = [ |
|
33 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.lib", |
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.lib" |
|
35 |
] |
|
36 |
buildtargets = [ |
|
37 |
"createstaticdll_dll/armv5/udeb/CreateStaticDLL.o", |
|
38 |
"createstaticdll_dll/armv5/urel/CreateStaticDLL.o" |
|
39 |
] |
|
40 |
mustmatch = [ |
|
41 |
r".*\busrt\d_\d\.lib\b.*", |
|
42 |
r".*\bscppnwdl\.dso\b.*" |
|
43 |
] |
|
44 |
mustnotmatch = [ |
|
45 |
".*ksrt.*" |
|
46 |
] |
|
47 |
||
48 |
# Note that ABIv1 import libraries are only generated for RVCT-based armv5 |
|
506
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
49 |
# builds on Windows if the kit asks for it (off by default) |
3 | 50 |
|
51 |
t.id = "0009a" |
|
52 |
t.name = "dll_armv5_rvct" |
|
53 |
t.command = command % "armv5" |
|
54 |
t.targets = maintargets[:] # Shallow, as we optionally extend later and then re-use |
|
55 |
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets) |
|
56 |
t.mustmatch = mustmatch |
|
57 |
t.mustnotmatch = mustnotmatch |
|
506
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
58 |
t.run() |
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
59 |
|
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
60 |
t.id = "0009b" |
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
61 |
t.name = "dll_armv5_rvct_abiv1" |
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
62 |
t.command += " --configpath=test/config/abiv1kit" |
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
63 |
t.targets.extend(abiv1libtargets) |
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
64 |
t.run("windows") |
3 | 65 |
|
506
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
66 |
t.id = "0009c" |
3 | 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 |
||
506
efe4a967495a
test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents:
3
diff
changeset
|
74 |
t.id = "0009d" |
3 | 75 |
t.name = "dll_armv5_gcce" |
76 |
t.command = command % "gcce_armv5" |
|
77 |
t.targets = maintargets |
|
78 |
t.antitargets = abiv1libtargets |
|
79 |
t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets) |
|
80 |
t.mustmatch = mustmatch |
|
81 |
t.mustnotmatch = mustnotmatch |
|
82 |
t.run() |
|
83 |
||
84 |
t.id = "9" |
|
85 |
t.name = "dll_armv5" |
|
86 |
t.print_result() |
|
87 |
return t |