First public contribution.
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\dll\t_xver2.cpp
21 RTest test(_L("T_XVER2"));
28 TUint ver = (TUint)Export01();
29 test.Printf(_L("Version %d.%d\n"), ver>>16, ver&0xffff);
31 #if defined(__USE02__)
32 test.Printf(_L("Test 2\n"));
33 test(Export02() == 2*2);
35 #if defined(__USE03__)
36 test.Printf(_L("Test 3\n"));
37 test(Export03() == 3*3);
39 #if defined(__USE04__)
40 test.Printf(_L("Test 4\n"));
41 test(Export04() == 4*4);
43 #if defined(__USE05__)
44 test.Printf(_L("Test 5\n"));
45 test(Export05() == 5*5);
47 #if defined(__USE06__)
48 test.Printf(_L("Test 6\n"));
49 test(Export06() == 6*6);
51 #if defined(__USE07__)
52 test.Printf(_L("Test 7\n"));
53 test(Export07() == 7*7);
55 #if defined(__USE08__)
56 test.Printf(_L("Test 8\n"));
57 test(Export08() == 8*8);
59 #if defined(__USE09__)
60 test.Printf(_L("Test 9\n"));
61 test(Export09() == 9*9);
63 #if defined(__USE10__)
64 test.Printf(_L("Test 10\n"));
65 test(Export10() == 10*10);
67 #if defined(__USE11__)
68 test.Printf(_L("Test 11\n"));
69 test(Export11() == 11*11);
71 #if defined(__USE12__)
72 test.Printf(_L("Test 12\n"));
73 test(Export12() == 12*12);
75 #if defined(__USE13__)
76 test.Printf(_L("Test 13\n"));
77 test(Export13() == 13*13);
79 #if defined(__USE14__)
80 test.Printf(_L("Test 14\n"));
81 test(Export14() == 14*14);
83 #if defined(__USE15__)
84 test.Printf(_L("Test 15\n"));
85 test(Export15() == 15*15);
87 #if defined(__USE16__)
88 test.Printf(_L("Test 16\n"));
89 test(Export16() == 16*16);
91 #if defined(__USE17__)
92 test.Printf(_L("Test 17\n"));
93 test(Export17() == 17*17);
95 #if defined(__USE18__)
96 test.Printf(_L("Test 18\n"));
97 test(Export18() == 18*18);
99 #if defined(__USE19__)
100 test.Printf(_L("Test 19\n"));
101 test(Export19() == 19*19);
103 #if defined(__USE20__)
104 test.Printf(_L("Test 20\n"));
105 test(Export20() == 20*20);
107 #if defined(__USE21__)
108 test.Printf(_L("Test 21\n"));
109 test(Export21() == 21*21);
111 #if defined(__USE22__)
112 test.Printf(_L("Test 22\n"));
113 test(Export22() == 22*22);
115 #if defined(__USE23__)
116 test.Printf(_L("Test 23\n"));
117 test(Export23() == 23*23);
119 #if defined(__USE24__)
120 test.Printf(_L("Test 24\n"));
121 test(Export24() == 24*24);
123 #if defined(__USE25__)
124 test.Printf(_L("Test 25\n"));
125 test(Export25() == 25*25);
127 #if defined(__USE26__)
128 test.Printf(_L("Test 26\n"));
129 test(Export26() == 26*26);
131 #if defined(__USE27__)
132 test.Printf(_L("Test 27\n"));
133 test(Export27() == 27*27);
135 #if defined(__USE28__)
136 test.Printf(_L("Test 28\n"));
137 test(Export28() == 28*28);
139 #if defined(__USE29__)
140 test.Printf(_L("Test 29\n"));
141 test(Export29() == 29*29);
143 #if defined(__USE30__)
144 test.Printf(_L("Test 30\n"));
145 test(Export30() == 30*30);
147 #if defined(__USE31__)
148 test.Printf(_L("Test 31\n"));
149 test(Export31() == 31*31);
151 #if defined(__USE32__)
152 test.Printf(_L("Test 32\n"));
153 test(Export32() == 32*32);
155 #if defined(__USE33__)
156 test.Printf(_L("Test 33\n"));
157 test(Export33() == 33*33);
159 #if defined(__USE34__)
160 test.Printf(_L("Test 34\n"));
161 test(Export34() == 34*34);
163 #if defined(__USE35__)
164 test.Printf(_L("Test 35\n"));
165 test(Export35() == 35*35);
167 #if defined(__USE36__)
168 test.Printf(_L("Test 36\n"));
169 test(Export36() == 36*36);
171 #if defined(__USE37__)
172 test.Printf(_L("Test 37\n"));
173 test(Export37() == 37*37);
175 #if defined(__USE38__)
176 test.Printf(_L("Test 38\n"));
177 test(Export38() == 38*38);
179 #if defined(__USE39__)
180 test.Printf(_L("Test 39\n"));
181 test(Export39() == 39*39);
183 #if defined(__USE40__)
184 test.Printf(_L("Test 40\n"));
185 test(Export40() == 40*40);
187 #if defined(__USE41__)
188 test.Printf(_L("Test 41\n"));
189 test(Export41() == 41*41);
191 #if defined(__USE42__)
192 test.Printf(_L("Test 42\n"));
193 test(Export42() == 42*42);
195 #if defined(__USE43__)
196 test.Printf(_L("Test 43\n"));
197 test(Export43() == 43*43);
199 #if defined(__USE44__)
200 test.Printf(_L("Test 44\n"));
201 test(Export44() == 44*44);
203 #if defined(__USE45__)
204 test.Printf(_L("Test 45\n"));
205 test(Export45() == 45*45);
207 #if defined(__USE46__)
208 test.Printf(_L("Test 46\n"));
209 test(Export46() == 46*46);
211 #if defined(__USE47__)
212 test.Printf(_L("Test 47\n"));
213 test(Export47() == 47*47);
215 #if defined(__USE48__)
216 test.Printf(_L("Test 48\n"));
217 test(Export48() == 48*48);
219 #if defined(__USE49__)
220 test.Printf(_L("Test 49\n"));
221 test(Export49() == 49*49);
223 #if defined(__USE50__)
224 test.Printf(_L("Test 50\n"));
225 test(Export50() == 50*50);
227 #if defined(__USE51__)
228 test.Printf(_L("Test 51\n"));
229 test(Export51() == 51*51);
231 #if defined(__USE52__)
232 test.Printf(_L("Test 52\n"));
233 test(Export52() == 52*52);
235 #if defined(__USE53__)
236 test.Printf(_L("Test 53\n"));
237 test(Export53() == 53*53);
239 #if defined(__USE54__)
240 test.Printf(_L("Test 54\n"));
241 test(Export54() == 54*54);
243 #if defined(__USE55__)
244 test.Printf(_L("Test 55\n"));
245 test(Export55() == 55*55);
247 #if defined(__USE56__)
248 test.Printf(_L("Test 56\n"));
249 test(Export56() == 56*56);
251 #if defined(__USE57__)
252 test.Printf(_L("Test 57\n"));
253 test(Export57() == 57*57);
255 #if defined(__USE58__)
256 test.Printf(_L("Test 58\n"));
257 test(Export58() == 58*58);
259 #if defined(__USE59__)
260 test.Printf(_L("Test 59\n"));
261 test(Export59() == 59*59);