author | Jon Chatten |
Thu, 25 Mar 2010 12:24:53 +0000 | |
branch | fix |
changeset 392 | 8f0708af8451 |
parent 234 | 5350032783e4 |
permissions | -rw-r--r-- |
3 | 1 |
# |
234 | 2 |
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 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" |
|
234 | 23 |
t.description = """Builds several ECOM plugins, with and without explicit DEFFILE statements, confirming |
24 |
the correct FREEZE behaviour in each case. The correct behaviour for a PLUGIN/PLUGIN3 is |
|
25 |
indicative of all TARGETTYPEs where the build system defines known exports: FREEZE should do nothing |
|
26 |
unless an explicit DEFFILE statement is present in the .mmp file. |
|
392
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
27 |
Also confirms default UID2 settings for PLUGIN3 TARGETTYPEs and default resource generation locations |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
28 |
for both PLUGIN and PLUGIN3.""" |
3 | 29 |
t.usebash = True |
30 |
||
31 |
t.command = """ |
|
32 |
sbs -b smoke_suite/test_resources/simple_plugin/bld.inf -c armv5_urel -c winscw_urel CLEAN > /dev/null && |
|
234 | 33 |
sbs -f- -b smoke_suite/test_resources/simple_plugin/bld.inf -c armv5_urel -c winscw_urel && |
3 | 34 |
sbs -b smoke_suite/test_resources/simple_plugin/bld.inf -c armv5_urel -c winscw_urel FREEZE -m ${SBSMAKEFILE} -f ${SBSLOGFILE}""" |
35 |
||
36 |
t.targets = [ |
|
37 |
"smoke_suite/test_resources/simple_plugin/bwins/plugin2u.def", |
|
392
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
38 |
"smoke_suite/test_resources/simple_plugin/eabi/plugin2u.def", |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
39 |
"$(EPOCROOT)/epoc32/data/z/resource/plugins/plugin.rsc", |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
40 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/plugins/plugin.rsc", |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
41 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/plugins/plugin.rsc", |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
42 |
"$(EPOCROOT)/epoc32/data/z/resource/plugins/plugin3.rsc", |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
43 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/plugins/plugin3.rsc", |
8f0708af8451
release note: SF Bug 2308 - [Raptor]: PLUGIN3 TARGETTYPEs don't set resource output offsets correctly
Jon Chatten
parents:
234
diff
changeset
|
44 |
"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/plugins/plugin3.rsc" |
3 | 45 |
] |
46 |
||
47 |
t.antitargets = [ |
|
48 |
"smoke_suite/test_resources/simple_plugin/bwins/pluginu.def", |
|
49 |
"smoke_suite/test_resources/simple_plugin/eabi/pluginu.def" |
|
50 |
] |
|
51 |
||
52 |
t.mustmatch = [ |
|
53 |
".*EFREEZE: Appending 3 New Export\(s\) to .*/test/smoke_suite/test_resources/simple_plugin/eabi/plugin2u.def.*", |
|
234 | 54 |
".*EFREEZE: Appending 1 New Export\(s\) to .*/test/smoke_suite/test_resources/simple_plugin/bwins/plugin2u.def.*", |
55 |
".*__EMULATOR_IMAGE_HEADER2\(0x10000079,0x10009D93,0x00000000.*", |
|
56 |
".*elf2e32.*--targettype=PLUGIN3.*--output=.*plugin3.dll.*--uid2=0x10009D93.*" |
|
57 |
||
3 | 58 |
] |
59 |
||
60 |
t.mustnotmatch = [ |
|
61 |
".*EFREEZE: .*/test/smoke_suite/test_resources/simple_plugin/eabi/pluginu.def.*", |
|
62 |
".*EFREEZE: .*/test/smoke_suite/test_resources/simple_plugin/bwins/pluginu.def.*" |
|
63 |
] |
|
64 |
||
234 | 65 |
t.warnings = 4 |
3 | 66 |
t.run() |
67 |
return t |