3
|
1 |
#
|
|
2 |
# Copyright (c) 2009 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 |
t.id = "90"
|
|
22 |
t.name = "plugin_armv5_winscw_freeze"
|
|
23 |
t.description = """Builds two PLUGIN components, one with and one without an explicit DEFFILE statement,
|
|
24 |
and confirms the correct FREEZE behaviour in each case. The correct behaviour for a PLUGIN is indicative
|
|
25 |
of all TARGETTYPEs where the build system defines known exports: FREEZE should do nothing unless an
|
|
26 |
explicit DEFFILE statement is present in the .mmp file."""
|
|
27 |
t.usebash = True
|
|
28 |
|
|
29 |
t.command = """
|
|
30 |
sbs -b smoke_suite/test_resources/simple_plugin/bld.inf -c armv5_urel -c winscw_urel CLEAN > /dev/null &&
|
|
31 |
sbs -b smoke_suite/test_resources/simple_plugin/bld.inf -c armv5_urel -c winscw_urel > /dev/null &&
|
|
32 |
sbs -b smoke_suite/test_resources/simple_plugin/bld.inf -c armv5_urel -c winscw_urel FREEZE -m ${SBSMAKEFILE} -f ${SBSLOGFILE}"""
|
|
33 |
|
|
34 |
t.targets = [
|
|
35 |
"smoke_suite/test_resources/simple_plugin/bwins/plugin2u.def",
|
|
36 |
"smoke_suite/test_resources/simple_plugin/eabi/plugin2u.def"
|
|
37 |
]
|
|
38 |
|
|
39 |
t.antitargets = [
|
|
40 |
"smoke_suite/test_resources/simple_plugin/bwins/pluginu.def",
|
|
41 |
"smoke_suite/test_resources/simple_plugin/eabi/pluginu.def"
|
|
42 |
]
|
|
43 |
|
|
44 |
t.mustmatch = [
|
|
45 |
".*EFREEZE: Appending 3 New Export\(s\) to .*/test/smoke_suite/test_resources/simple_plugin/eabi/plugin2u.def.*",
|
|
46 |
".*EFREEZE: Appending 1 New Export\(s\) to .*/test/smoke_suite/test_resources/simple_plugin/bwins/plugin2u.def.*"
|
|
47 |
]
|
|
48 |
|
|
49 |
t.mustnotmatch = [
|
|
50 |
".*EFREEZE: .*/test/smoke_suite/test_resources/simple_plugin/eabi/pluginu.def.*",
|
|
51 |
".*EFREEZE: .*/test/smoke_suite/test_resources/simple_plugin/bwins/pluginu.def.*"
|
|
52 |
]
|
|
53 |
|
|
54 |
t.warnings = 2
|
|
55 |
t.run()
|
|
56 |
return t
|