591
|
1 |
#
|
|
2 |
# Copyright (c) 2010 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 SmokeTest
|
|
18 |
|
|
19 |
def run():
|
|
20 |
t = SmokeTest()
|
|
21 |
|
|
22 |
t.id = "71a"
|
|
23 |
t.name = "implib_implicit_def"
|
|
24 |
t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \
|
|
25 |
+ " -p implib_implicit_def.mmp"
|
|
26 |
t.targets = [
|
|
27 |
"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def.dso",
|
|
28 |
"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def{000a0000}.dso",
|
|
29 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/implib_implicit_def.lib"
|
|
30 |
]
|
|
31 |
t.run()
|
|
32 |
|
|
33 |
t.id = "71b"
|
|
34 |
t.name = "implib_no_def"
|
|
35 |
t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \
|
|
36 |
+ " -p implib_no_def.mmp"
|
|
37 |
t.targets = []
|
|
38 |
t.mustmatch = [
|
|
39 |
"No DEF File for IMPLIB target type in"
|
|
40 |
]
|
|
41 |
t.errors = 2 # 1 for winscw and 1 for armv5
|
|
42 |
t.returncode = 1
|
|
43 |
t.run()
|
|
44 |
|
|
45 |
t.id = "71"
|
|
46 |
t.name = "implib_nodef"
|
|
47 |
t.print_result()
|
|
48 |
|
|
49 |
return t
|