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 |
from raptor_tests import where
|
|
19 |
|
|
20 |
def run():
|
|
21 |
t = SmokeTest()
|
|
22 |
t.id = "0012a"
|
|
23 |
t.name = "dll_armv5_winscw_freeze"
|
|
24 |
t.description = """Builds a component with unfrozen exports from clean,
|
|
25 |
followed by a FREEZE, a further CLEAN and then a check that new .def
|
|
26 |
files are present. The PERL environment variable is set to the absolute
|
|
27 |
Perl path in order to test a known issue with the execution of tools
|
|
28 |
such as efreeze under Cygwin when multiple arguments are listed.
|
|
29 |
Part b tests whether removing an export works when using the variant;
|
|
30 |
remove_freeze"""
|
|
31 |
t.usebash = True
|
|
32 |
|
|
33 |
perl_location = where("perl")
|
|
34 |
|
|
35 |
t.command = """
|
|
36 |
sbs -b smoke_suite/test_resources/unfrozen/freeze.inf -p unfrozensymbols_for_freeze.mmp -c armv5 -c winscw CLEAN > /dev/null &&
|
|
37 |
export PERL="%s" &&
|
|
38 |
sbs -b smoke_suite/test_resources/unfrozen/freeze.inf -p unfrozensymbols_for_freeze.mmp -c armv5 -c winscw > /dev/null &&
|
|
39 |
sbs -b smoke_suite/test_resources/unfrozen/freeze.inf -p unfrozensymbols_for_freeze.mmp -c armv5_urel -c winscw_urel FREEZE -m ${SBSMAKEFILE} -f ${SBSLOGFILE}
|
|
40 |
""" % perl_location
|
|
41 |
|
|
42 |
t.targets = [
|
|
43 |
"smoke_suite/test_resources/unfrozen/frozen/bwins/frozenu.def",
|
|
44 |
"smoke_suite/test_resources/unfrozen/frozen/eabi/frozenu.def"
|
|
45 |
]
|
|
46 |
|
|
47 |
t.warnings = 2
|
|
48 |
t.run()
|
|
49 |
|
|
50 |
|
|
51 |
t.id = "0012b"
|
|
52 |
t.name = "armv5_re-freeze_with_removed_export"
|
|
53 |
|
|
54 |
t.command = "sbs -b smoke_suite/test_resources/unfrozen/freeze.inf" \
|
|
55 |
+ " -p frozen_with_removed_export.mmp -c armv5_urel ;" \
|
|
56 |
+ " sbs -b smoke_suite/test_resources/unfrozen/freeze.inf" \
|
|
57 |
+ " -p frozen_with_removed_export.mmp FREEZE" \
|
|
58 |
+ " -c armv5_urel.remove_freeze" \
|
|
59 |
+ " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} &&" \
|
|
60 |
+ " grep -ir '_ZN10CMessenger11ShowMessageEv @ 1 NONAME ABSENT' $(SBS_HOME)/test/smoke_suite/test_resources/unfrozen/frozen/eabi/frozenu.def"
|
|
61 |
|
|
62 |
t.targets = []
|
|
63 |
t.mustmatch = [
|
|
64 |
"_ZN10CMessenger11ShowMessageEv @ 1 NONAME ABSENT"
|
|
65 |
]
|
|
66 |
t.warnings = 0
|
|
67 |
t.errors = 1
|
|
68 |
|
|
69 |
t.run()
|
|
70 |
|
|
71 |
|
|
72 |
t.id = "0012c"
|
|
73 |
t.name = "winscw_re-freeze_with_removed_export"
|
|
74 |
|
|
75 |
t.command = "sbs -b smoke_suite/test_resources/unfrozen/freeze.inf" \
|
|
76 |
+ " -p frozen_with_removed_export.mmp -c winscw_urel ;" \
|
|
77 |
+ " sbs -b smoke_suite/test_resources/unfrozen/freeze.inf" \
|
|
78 |
+ " -p frozen_with_removed_export.mmp FREEZE" \
|
|
79 |
+ " -c winscw_urel.remove_freeze" \
|
|
80 |
+ " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} &&" \
|
|
81 |
+ " grep -ir '?ShowMessage@CMessenger@@QAEXXZ @ 3 NONAME ABSENT' $(SBS_HOME)/test/smoke_suite/test_resources/unfrozen/frozen/bwins/frozenu.def"
|
|
82 |
|
|
83 |
t.mustmatch = [
|
|
84 |
"\?ShowMessage@CMessenger@@QAEXXZ @ 3 NONAME ABSENT"
|
|
85 |
]
|
|
86 |
|
|
87 |
t.run()
|
|
88 |
|
|
89 |
t.id = "12"
|
|
90 |
t.name = "dll_armv5_winscw_freeze"
|
|
91 |
t.print_result()
|
|
92 |
return t
|
|
93 |
|