1 # |
1 # |
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 # All rights reserved. |
3 # All rights reserved. |
4 # This component and the accompanying materials are made available |
4 # This component and the accompanying materials are made available |
5 # under the terms of the License "Eclipse Public License v1.0" |
5 # under the terms of the License "Eclipse Public License v1.0" |
6 # which accompanies this distribution, and is available |
6 # which accompanies this distribution, and is available |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 from raptor_tests import AntiTargetSmokeTest |
17 from raptor_tests import AntiTargetSmokeTest |
18 |
18 |
19 def run(): |
19 def run(): |
20 t = AntiTargetSmokeTest() |
20 t = AntiTargetSmokeTest() |
21 t.usebash = True |
21 t.usebash = True |
22 result = AntiTargetSmokeTest.PASS |
|
23 |
22 |
24 command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c %s -f-" |
23 command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c %s -f-" |
25 maintargets = [ |
24 maintargets = [ |
26 "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", |
25 "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym", |
27 "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", |
26 "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym", |
45 mustnotmatch = [ |
44 mustnotmatch = [ |
46 ".*ksrt.*" |
45 ".*ksrt.*" |
47 ] |
46 ] |
48 |
47 |
49 # Note that ABIv1 import libraries are only generated for RVCT-based armv5 |
48 # Note that ABIv1 import libraries are only generated for RVCT-based armv5 |
50 # builds on Windows |
49 # builds on Windows if the kit asks for it (off by default) |
51 |
50 |
52 t.id = "0009a" |
51 t.id = "0009a" |
53 t.name = "dll_armv5_rvct" |
52 t.name = "dll_armv5_rvct" |
54 t.command = command % "armv5" |
53 t.command = command % "armv5" |
55 t.targets = maintargets[:] # Shallow, as we optionally extend later and then re-use |
54 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) |
55 t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets) |
57 t.mustmatch = mustmatch |
56 t.mustmatch = mustmatch |
58 t.mustnotmatch = mustnotmatch |
57 t.mustnotmatch = mustnotmatch |
59 t.run("linux") |
58 t.run() |
60 if t.result == AntiTargetSmokeTest.SKIP: |
59 |
61 t.targets.extend(abiv1libtargets) |
60 t.id = "0009b" |
62 t.run("windows") |
61 t.name = "dll_armv5_rvct_abiv1" |
63 if t.result == AntiTargetSmokeTest.FAIL: |
62 t.command += " --configpath=test/config/abiv1kit" |
64 result = AntiTargetSmokeTest.FAIL |
63 t.targets.extend(abiv1libtargets) |
|
64 t.run("windows") |
65 |
65 |
66 t.id = "0009b" |
66 t.id = "0009c" |
67 t.name = "dll_armv5_clean" |
67 t.name = "dll_armv5_clean" |
68 t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5 clean" |
68 t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c armv5 clean" |
69 t.targets = [] |
69 t.targets = [] |
70 t.mustmatch = [] |
70 t.mustmatch = [] |
71 t.mustnotmatch = [] |
71 t.mustnotmatch = [] |
72 t.run() |
72 t.run() |
73 if t.result == AntiTargetSmokeTest.FAIL: |
|
74 result = AntiTargetSmokeTest.FAIL |
|
75 |
73 |
76 t.id = "0009c" |
74 t.id = "0009d" |
77 t.name = "dll_armv5_gcce" |
75 t.name = "dll_armv5_gcce" |
78 t.command = command % "gcce_armv5" |
76 t.command = command % "gcce_armv5" |
79 t.targets = maintargets |
77 t.targets = maintargets |
80 t.antitargets = abiv1libtargets |
78 t.antitargets = abiv1libtargets |
81 t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets) |
79 t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', buildtargets) |
82 t.mustmatch = mustmatch |
80 t.mustmatch = mustmatch |
83 t.mustnotmatch = mustnotmatch |
81 t.mustnotmatch = mustnotmatch |
84 t.run() |
82 t.run() |
85 if t.result == AntiTargetSmokeTest.FAIL: |
|
86 result = AntiTargetSmokeTest.FAIL |
|
87 |
83 |
88 t.id = "9" |
84 t.id = "9" |
89 t.name = "dll_armv5" |
85 t.name = "dll_armv5" |
90 t.result = result |
|
91 t.print_result() |
86 t.print_result() |
92 return t |
87 return t |