|
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 = "49" |
|
22 t.name = "unfrozen" |
|
23 t.description = "Test EXPORTUNFROZEN forced import library generation with both completely unfrozen and part-frozen examples" |
|
24 t.command = "sbs -b smoke_suite/test_resources/unfrozen/bld.inf -k -c winscw -c armv5 CLEAN" \ |
|
25 " && sbs -b smoke_suite/test_resources/unfrozen/bld.inf -k -c winscw -c armv5" |
|
26 t.targets = [ |
|
27 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols.dso", |
|
28 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols{000a0000}.dso", |
|
29 "$(EPOCROOT)/epoc32/release/armv5/urel/unfrozensymbols.dll", |
|
30 "$(EPOCROOT)/epoc32/release/armv5/urel/unfrozensymbols.dll.sym", |
|
31 "$(EPOCROOT)/epoc32/release/armv5/urel/unfrozensymbols.dll.map", |
|
32 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols2.dso", |
|
33 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols2{000a0000}.dso", |
|
34 "$(EPOCROOT)/epoc32/release/armv5/urel/unfrozensymbols2.dll", |
|
35 "$(EPOCROOT)/epoc32/release/armv5/urel/unfrozensymbols2.dll.sym", |
|
36 "$(EPOCROOT)/epoc32/release/armv5/urel/unfrozensymbols2.dll.map", |
|
37 "$(EPOCROOT)/epoc32/release/armv5/urel/test_unfrozen.exe", |
|
38 "$(EPOCROOT)/epoc32/release/armv5/urel/test_unfrozen.exe.sym", |
|
39 "$(EPOCROOT)/epoc32/release/armv5/urel/test_unfrozen.exe.map", |
|
40 "$(EPOCROOT)/epoc32/release/winscw/urel/unfrozensymbols.dll", |
|
41 "$(EPOCROOT)/epoc32/release/winscw/urel/unfrozensymbols.dll.map", |
|
42 "$(EPOCROOT)/epoc32/release/winscw/urel/unfrozensymbols2.dll", |
|
43 "$(EPOCROOT)/epoc32/release/winscw/urel/unfrozensymbols2.dll.map", |
|
44 "$(EPOCROOT)/epoc32/release/winscw/urel/test_unfrozen.exe", |
|
45 "$(EPOCROOT)/epoc32/release/winscw/urel/test_unfrozen.exe.map", |
|
46 "$(EPOCROOT)/epoc32/release/armv5/udeb/unfrozensymbols.dll", |
|
47 "$(EPOCROOT)/epoc32/release/armv5/udeb/unfrozensymbols.dll.sym", |
|
48 "$(EPOCROOT)/epoc32/release/armv5/udeb/unfrozensymbols.dll.map", |
|
49 "$(EPOCROOT)/epoc32/release/armv5/udeb/unfrozensymbols2.dll", |
|
50 "$(EPOCROOT)/epoc32/release/armv5/udeb/unfrozensymbols2.dll.sym", |
|
51 "$(EPOCROOT)/epoc32/release/armv5/udeb/unfrozensymbols2.dll.map", |
|
52 "$(EPOCROOT)/epoc32/release/armv5/udeb/test_unfrozen.exe", |
|
53 "$(EPOCROOT)/epoc32/release/armv5/udeb/test_unfrozen.exe.sym", |
|
54 "$(EPOCROOT)/epoc32/release/armv5/udeb/test_unfrozen.exe.map", |
|
55 "$(EPOCROOT)/epoc32/release/winscw/udeb/unfrozensymbols.dll", |
|
56 "$(EPOCROOT)/epoc32/release/winscw/udeb/unfrozensymbols.lib", |
|
57 "$(EPOCROOT)/epoc32/release/winscw/udeb/unfrozensymbols2.dll", |
|
58 "$(EPOCROOT)/epoc32/release/winscw/udeb/unfrozensymbols2.lib", |
|
59 "$(EPOCROOT)/epoc32/release/winscw/udeb/test_unfrozen.exe" |
|
60 ] |
|
61 t.addbuildtargets('smoke_suite/test_resources/unfrozen/bld.inf', [ |
|
62 "unfrozensymbols_dll/armv5/urel/unfrozensymbols{000a0000}.def", |
|
63 "unfrozensymbols_dll/armv5/urel/unfrozensymbols{000a0000}.dso", |
|
64 "unfrozensymbols_dll/armv5/urel/unfrozensymbols_urel_objects.via", |
|
65 "unfrozensymbols_dll/armv5/urel/unfrozensymbols.o.d", |
|
66 "unfrozensymbols_dll/armv5/urel/unfrozensymbols.o", |
|
67 "unfrozensymbols2_dll/armv5/urel/unfrozensymbols2{000a0000}.def", |
|
68 "unfrozensymbols2_dll/armv5/urel/unfrozensymbols2{000a0000}.dso", |
|
69 "unfrozensymbols2_dll/armv5/urel/unfrozensymbols2_urel_objects.via", |
|
70 "unfrozensymbols2_dll/armv5/urel/unfrozensymbols.o.d", |
|
71 "unfrozensymbols2_dll/armv5/urel/unfrozensymbols.o", |
|
72 "test_unfrozen_/armv5/urel/test_unfrozen_urel_objects.via", |
|
73 "test_unfrozen_/armv5/urel/test.o.d", |
|
74 "test_unfrozen_/armv5/urel/test.o", |
|
75 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.UID.CPP", |
|
76 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.o", |
|
77 "unfrozensymbols_dll/winscw/urel/unfrozensymbols_UID_.o", |
|
78 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.dep", |
|
79 "unfrozensymbols_dll/winscw/urel/unfrozensymbols_UID_.dep", |
|
80 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.o.d", |
|
81 "unfrozensymbols_dll/winscw/urel/unfrozensymbols_UID_.o.d", |
|
82 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.lib", |
|
83 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.inf", |
|
84 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.dll", |
|
85 "unfrozensymbols_dll/winscw/urel/unfrozensymbols.def", |
|
86 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.UID.CPP", |
|
87 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols.o", |
|
88 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2_UID_.o", |
|
89 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols.dep", |
|
90 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2_UID_.dep", |
|
91 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols.o.d", |
|
92 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2_UID_.o.d", |
|
93 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.lib", |
|
94 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.inf", |
|
95 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.dll", |
|
96 "unfrozensymbols2_dll/winscw/urel/unfrozensymbols2.def", |
|
97 "test_unfrozen_/winscw/urel/test_unfrozen.UID.CPP", |
|
98 "test_unfrozen_/winscw/urel/test.o", |
|
99 "test_unfrozen_/winscw/urel/test_unfrozen_UID_.o", |
|
100 "test_unfrozen_/winscw/urel/test.dep", |
|
101 "test_unfrozen_/winscw/urel/test_unfrozen_UID_.dep", |
|
102 "test_unfrozen_/winscw/urel/test.o.d", |
|
103 "test_unfrozen_/winscw/urel/test_unfrozen_UID_.o.d", |
|
104 "unfrozensymbols_dll/armv5/udeb/unfrozensymbols{000a0000}.def", |
|
105 "unfrozensymbols_dll/armv5/udeb/unfrozensymbols{000a0000}.dso", |
|
106 "unfrozensymbols_dll/armv5/udeb/unfrozensymbols_udeb_objects.via", |
|
107 "unfrozensymbols_dll/armv5/udeb/unfrozensymbols.o.d", |
|
108 "unfrozensymbols_dll/armv5/udeb/unfrozensymbols.o", |
|
109 "unfrozensymbols_dll/armv5/udeb/unfrozensymbols.o", |
|
110 "unfrozensymbols2_dll/armv5/udeb/unfrozensymbols2{000a0000}.def", |
|
111 "unfrozensymbols2_dll/armv5/udeb/unfrozensymbols2{000a0000}.dso", |
|
112 "unfrozensymbols2_dll/armv5/udeb/unfrozensymbols2_udeb_objects.via", |
|
113 "unfrozensymbols2_dll/armv5/udeb/unfrozensymbols.o.d", |
|
114 "unfrozensymbols2_dll/armv5/udeb/unfrozensymbols.o", |
|
115 "unfrozensymbols2_dll/armv5/udeb/unfrozensymbols.o", |
|
116 "test_unfrozen_/armv5/udeb/test_unfrozen_udeb_objects.via", |
|
117 "test_unfrozen_/armv5/udeb/test.o.d", |
|
118 "test_unfrozen_/armv5/udeb/test.o", |
|
119 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.UID.CPP", |
|
120 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.o", |
|
121 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols_UID_.o", |
|
122 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.dep", |
|
123 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols_UID_.dep", |
|
124 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.o.d", |
|
125 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols_UID_.o.d", |
|
126 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.lib", |
|
127 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.inf", |
|
128 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.dll", |
|
129 "unfrozensymbols_dll/winscw/udeb/unfrozensymbols.def", |
|
130 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.UID.CPP", |
|
131 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols.o", |
|
132 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2_UID_.o", |
|
133 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols.dep", |
|
134 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2_UID_.dep", |
|
135 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols.o.d", |
|
136 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2_UID_.o.d", |
|
137 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.lib", |
|
138 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.inf", |
|
139 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.dll", |
|
140 "unfrozensymbols2_dll/winscw/udeb/unfrozensymbols2.def", |
|
141 "test_unfrozen_/winscw/udeb/test_unfrozen.UID.CPP", |
|
142 "test_unfrozen_/winscw/udeb/test.o", |
|
143 "test_unfrozen_/winscw/udeb/test_unfrozen_UID_.o", |
|
144 "test_unfrozen_/winscw/udeb/test.dep", |
|
145 "test_unfrozen_/winscw/udeb/test_unfrozen_UID_.dep", |
|
146 "test_unfrozen_/winscw/udeb/test.o.d", |
|
147 "test_unfrozen_/winscw/udeb/test_unfrozen_UID_.o.d" |
|
148 ]) |
|
149 # Match both ARMV5 (elf2e32) and WINSCW (makedef) unfrozen export warnings and confirm the number found. Format: |
|
150 # Elf2e32: Warning: New Symbol _ZN10CMessenger5NewLCER12CConsoleBaseRK7TDesC16 found, export(s) not yet Frozen |
|
151 # F:/path/epocroot/epoc32/build/unfrozen/c_939fe933110ed5aa/unfrozensymbols_dll/winscw/udeb/unfrozensymbols.def(3) : ?NewLC@CMessenger@@SAPAV1@AAVCConsoleBase@@ABVTDesC16@@@Z @1 |
|
152 # More matches are expected with elf2e32 due to extra build impedimenta in EABI builds. |
|
153 t.countmatch = [ |
|
154 [".*Elf2e32: Warning: New Symbol .* found, export\(s\) not yet Frozen.*", 14], |
|
155 [".*\.def\(\d\) : .*@\d.*", 10] |
|
156 ] |
|
157 t.warnings = 8 |
|
158 # ABIv1 .lib files are not generated on Linux |
|
159 t.run("linux") |
|
160 if t.result == SmokeTest.SKIP: |
|
161 t.targets.extend([ |
|
162 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols.lib", |
|
163 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols{000a0000}.lib", |
|
164 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols2.lib", |
|
165 "$(EPOCROOT)/epoc32/release/armv5/lib/unfrozensymbols2{000a0000}.lib" |
|
166 ]) |
|
167 t.run("windows") |
|
168 |
|
169 return t |