author | timothy.murphy@nokia.com |
Tue, 02 Mar 2010 09:17:29 +0000 | |
changeset 297 | 7029b5be2b15 |
parent 245 | cbc11ebd788f |
child 506 | efe4a967495a |
permissions | -rw-r--r-- |
245
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
1 |
# |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
2 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
3 |
# All rights reserved. |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
4 |
# This component and the accompanying materials are made available |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
6 |
# which accompanies this distribution, and is available |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
8 |
# |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
9 |
# Initial Contributors: |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
10 |
# Nokia Corporation - initial contribution. |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
11 |
# |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
12 |
# Contributors: |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
13 |
# |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
14 |
# Description: |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
15 |
# |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
16 |
|
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
17 |
from raptor_tests import SmokeTest |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
18 |
|
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
19 |
def run(): |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
20 |
t = SmokeTest() |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
21 |
|
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
22 |
t.id = "71a" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
23 |
t.name = "implib_implicit_def" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
24 |
t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \ |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
25 |
+ " -p implib_implicit_def.mmp" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
26 |
t.targets = [ |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
27 |
"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def.dso", |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
28 |
"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def{000a0000}.dso", |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
29 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/implib_implicit_def.lib" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
30 |
] |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
31 |
t.run("linux") |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
32 |
if t.result == SmokeTest.SKIP: |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
33 |
t.targets.extend([ |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def.lib", |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
35 |
"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def{000a0000}.lib" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
36 |
]) |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
37 |
t.run("windows") |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
38 |
|
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
39 |
t.id = "71b" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
40 |
t.name = "implib_no_def" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
41 |
t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \ |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
42 |
+ " -p implib_no_def.mmp" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
43 |
t.targets = [] |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
44 |
t.mustmatch = [ |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
45 |
"No DEF File for IMPLIB target type in" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
46 |
] |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
47 |
t.errors = 2 # 1 for winscw and 1 for armv5 |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
48 |
t.returncode = 1 |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
49 |
t.run() |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
50 |
|
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
51 |
t.id = "71" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
52 |
t.name = "implib_nodef" |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
53 |
t.print_result() |
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
54 |
|
cbc11ebd788f
Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff
changeset
|
55 |
return t |