author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Thu, 01 Apr 2010 15:50:33 +0100 | |
branch | wip |
changeset 450 | 63f3bc391c14 |
parent 171 | 083d88a8550e |
permissions | -rw-r--r-- |
23 | 1 |
# |
171
083d88a8550e
Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents:
170
diff
changeset
|
2 |
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
23 | 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 |
import string |
|
19 |
||
20 |
def run(): |
|
21 |
t = SmokeTest() |
|
22 |
t.description = "Check that ARM toolchain specific macros are used in both metadata and source processing." |
|
23 |
t.warnings = -1 |
|
24 |
||
25 |
toolchains = { |
|
26 |
'rvct2_2': ['ARMCC', 'ARMCC_2', 'ARMCC_2_2', '__ARMCC__', '__ARMCC_2__', '__ARMCC_2_2__'], |
|
27 |
'rvct3_1': ['ARMCC', 'ARMCC_3', 'ARMCC_3_1', '__ARMCC__', '__ARMCC_3__' , '__ARMCC_3_1__'], |
|
28 |
'rvct4_0': ['ARMCC', 'ARMCC_4', 'ARMCC_4_0', '__ARMCC__', '__ARMCC_4__' , '__ARMCC_4_0__'], |
|
29 |
'gcce4_3_2': ['GCCE', 'GCCE_4', 'GCCE_4_3', '__GCCE__', '__GCCE_4__' , '__GCCE_4_3__'], |
|
30 |
'gcce4_3_3': ['GCCE', 'GCCE_4', 'GCCE_4_3', '__GCCE__', '__GCCE_4__' , '__GCCE_4_3__'], |
|
31 |
'gcce4_4_1': ['GCCE', 'GCCE_4', 'GCCE_4_4', '__GCCE__', '__GCCE_4__' , '__GCCE_4_4__'] |
|
32 |
} |
|
33 |
||
34 |
rootname = "toolchain_macros_armv5_%s_%s" |
|
35 |
rootcommand = "sbs -b smoke_suite/test_resources/toolchain_macros/bld.inf -c arm.v5.urel." |
|
36 |
macromatch = ": #warning( directive:)? %s(</warning>)?$" |
|
37 |
||
38 |
count = 0 |
|
39 |
for toolchain in sorted(toolchains.keys()): |
|
170
d1af983e283d
Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents:
25
diff
changeset
|
40 |
t.id = "0095" + string.ascii_lowercase[count] |
23 | 41 |
t.name = rootname % (toolchain, "clean") |
42 |
t.command = rootcommand + toolchain + " clean" |
|
43 |
t.mustmatch_singleline = [] |
|
44 |
t.run() |
|
45 |
count += 1 |
|
46 |
||
170
d1af983e283d
Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents:
25
diff
changeset
|
47 |
t.id = "0095" + string.ascii_lowercase[count] |
23 | 48 |
t.name = rootname % (toolchain, "build") |
49 |
t.command = rootcommand + toolchain |
|
50 |
mustmatch = [] |
|
51 |
for macro in toolchains[toolchain]: |
|
52 |
mustmatch.append(macromatch % macro) |
|
53 |
t.mustmatch_singleline = mustmatch |
|
54 |
t.run() |
|
55 |
count += 1 |
|
56 |
||
170
d1af983e283d
Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents:
25
diff
changeset
|
57 |
t.id = "95" |
23 | 58 |
t.name = "toolchain_macros" |
59 |
t.print_result() |
|
60 |
return t |