os/kernelhwsrv/kerneltest/e32test/dll/t_xver2.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/dll/t_xver2.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,265 @@
     1.4 +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32test\dll\t_xver2.cpp
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#include <e32test.h>
    1.22 +#include "t_ver2.h"
    1.23 +
    1.24 +RTest test(_L("T_XVER2"));
    1.25 +
    1.26 +
    1.27 +TInt E32Main()
    1.28 +	{
    1.29 +	test.Title();
    1.30 +
    1.31 +	TUint ver = (TUint)Export01();
    1.32 +	test.Printf(_L("Version %d.%d\n"), ver>>16, ver&0xffff);
    1.33 +
    1.34 +#if defined(__USE02__)
    1.35 +	test.Printf(_L("Test 2\n"));
    1.36 +	test(Export02() == 2*2);
    1.37 +#endif
    1.38 +#if defined(__USE03__)
    1.39 +	test.Printf(_L("Test 3\n"));
    1.40 +	test(Export03() == 3*3);
    1.41 +#endif
    1.42 +#if defined(__USE04__)
    1.43 +	test.Printf(_L("Test 4\n"));
    1.44 +	test(Export04() == 4*4);
    1.45 +#endif
    1.46 +#if defined(__USE05__)
    1.47 +	test.Printf(_L("Test 5\n"));
    1.48 +	test(Export05() == 5*5);
    1.49 +#endif
    1.50 +#if defined(__USE06__)
    1.51 +	test.Printf(_L("Test 6\n"));
    1.52 +	test(Export06() == 6*6);
    1.53 +#endif
    1.54 +#if defined(__USE07__)
    1.55 +	test.Printf(_L("Test 7\n"));
    1.56 +	test(Export07() == 7*7);
    1.57 +#endif
    1.58 +#if defined(__USE08__)
    1.59 +	test.Printf(_L("Test 8\n"));
    1.60 +	test(Export08() == 8*8);
    1.61 +#endif
    1.62 +#if defined(__USE09__)
    1.63 +	test.Printf(_L("Test 9\n"));
    1.64 +	test(Export09() == 9*9);
    1.65 +#endif
    1.66 +#if defined(__USE10__)
    1.67 +	test.Printf(_L("Test 10\n"));
    1.68 +	test(Export10() == 10*10);
    1.69 +#endif
    1.70 +#if defined(__USE11__)
    1.71 +	test.Printf(_L("Test 11\n"));
    1.72 +	test(Export11() == 11*11);
    1.73 +#endif
    1.74 +#if defined(__USE12__)
    1.75 +	test.Printf(_L("Test 12\n"));
    1.76 +	test(Export12() == 12*12);
    1.77 +#endif
    1.78 +#if defined(__USE13__)
    1.79 +	test.Printf(_L("Test 13\n"));
    1.80 +	test(Export13() == 13*13);
    1.81 +#endif
    1.82 +#if defined(__USE14__)
    1.83 +	test.Printf(_L("Test 14\n"));
    1.84 +	test(Export14() == 14*14);
    1.85 +#endif
    1.86 +#if defined(__USE15__)
    1.87 +	test.Printf(_L("Test 15\n"));
    1.88 +	test(Export15() == 15*15);
    1.89 +#endif
    1.90 +#if defined(__USE16__)
    1.91 +	test.Printf(_L("Test 16\n"));
    1.92 +	test(Export16() == 16*16);
    1.93 +#endif
    1.94 +#if defined(__USE17__)
    1.95 +	test.Printf(_L("Test 17\n"));
    1.96 +	test(Export17() == 17*17);
    1.97 +#endif
    1.98 +#if defined(__USE18__)
    1.99 +	test.Printf(_L("Test 18\n"));
   1.100 +	test(Export18() == 18*18);
   1.101 +#endif
   1.102 +#if defined(__USE19__)
   1.103 +	test.Printf(_L("Test 19\n"));
   1.104 +	test(Export19() == 19*19);
   1.105 +#endif
   1.106 +#if defined(__USE20__)
   1.107 +	test.Printf(_L("Test 20\n"));
   1.108 +	test(Export20() == 20*20);
   1.109 +#endif
   1.110 +#if defined(__USE21__)
   1.111 +	test.Printf(_L("Test 21\n"));
   1.112 +	test(Export21() == 21*21);
   1.113 +#endif
   1.114 +#if defined(__USE22__)
   1.115 +	test.Printf(_L("Test 22\n"));
   1.116 +	test(Export22() == 22*22);
   1.117 +#endif
   1.118 +#if defined(__USE23__)
   1.119 +	test.Printf(_L("Test 23\n"));
   1.120 +	test(Export23() == 23*23);
   1.121 +#endif
   1.122 +#if defined(__USE24__)
   1.123 +	test.Printf(_L("Test 24\n"));
   1.124 +	test(Export24() == 24*24);
   1.125 +#endif
   1.126 +#if defined(__USE25__)
   1.127 +	test.Printf(_L("Test 25\n"));
   1.128 +	test(Export25() == 25*25);
   1.129 +#endif
   1.130 +#if defined(__USE26__)
   1.131 +	test.Printf(_L("Test 26\n"));
   1.132 +	test(Export26() == 26*26);
   1.133 +#endif
   1.134 +#if defined(__USE27__)
   1.135 +	test.Printf(_L("Test 27\n"));
   1.136 +	test(Export27() == 27*27);
   1.137 +#endif
   1.138 +#if defined(__USE28__)
   1.139 +	test.Printf(_L("Test 28\n"));
   1.140 +	test(Export28() == 28*28);
   1.141 +#endif
   1.142 +#if defined(__USE29__)
   1.143 +	test.Printf(_L("Test 29\n"));
   1.144 +	test(Export29() == 29*29);
   1.145 +#endif
   1.146 +#if defined(__USE30__)
   1.147 +	test.Printf(_L("Test 30\n"));
   1.148 +	test(Export30() == 30*30);
   1.149 +#endif
   1.150 +#if defined(__USE31__)
   1.151 +	test.Printf(_L("Test 31\n"));
   1.152 +	test(Export31() == 31*31);
   1.153 +#endif
   1.154 +#if defined(__USE32__)
   1.155 +	test.Printf(_L("Test 32\n"));
   1.156 +	test(Export32() == 32*32);
   1.157 +#endif
   1.158 +#if defined(__USE33__)
   1.159 +	test.Printf(_L("Test 33\n"));
   1.160 +	test(Export33() == 33*33);
   1.161 +#endif
   1.162 +#if defined(__USE34__)
   1.163 +	test.Printf(_L("Test 34\n"));
   1.164 +	test(Export34() == 34*34);
   1.165 +#endif
   1.166 +#if defined(__USE35__)
   1.167 +	test.Printf(_L("Test 35\n"));
   1.168 +	test(Export35() == 35*35);
   1.169 +#endif
   1.170 +#if defined(__USE36__)
   1.171 +	test.Printf(_L("Test 36\n"));
   1.172 +	test(Export36() == 36*36);
   1.173 +#endif
   1.174 +#if defined(__USE37__)
   1.175 +	test.Printf(_L("Test 37\n"));
   1.176 +	test(Export37() == 37*37);
   1.177 +#endif
   1.178 +#if defined(__USE38__)
   1.179 +	test.Printf(_L("Test 38\n"));
   1.180 +	test(Export38() == 38*38);
   1.181 +#endif
   1.182 +#if defined(__USE39__)
   1.183 +	test.Printf(_L("Test 39\n"));
   1.184 +	test(Export39() == 39*39);
   1.185 +#endif
   1.186 +#if defined(__USE40__)
   1.187 +	test.Printf(_L("Test 40\n"));
   1.188 +	test(Export40() == 40*40);
   1.189 +#endif
   1.190 +#if defined(__USE41__)
   1.191 +	test.Printf(_L("Test 41\n"));
   1.192 +	test(Export41() == 41*41);
   1.193 +#endif
   1.194 +#if defined(__USE42__)
   1.195 +	test.Printf(_L("Test 42\n"));
   1.196 +	test(Export42() == 42*42);
   1.197 +#endif
   1.198 +#if defined(__USE43__)
   1.199 +	test.Printf(_L("Test 43\n"));
   1.200 +	test(Export43() == 43*43);
   1.201 +#endif
   1.202 +#if defined(__USE44__)
   1.203 +	test.Printf(_L("Test 44\n"));
   1.204 +	test(Export44() == 44*44);
   1.205 +#endif
   1.206 +#if defined(__USE45__)
   1.207 +	test.Printf(_L("Test 45\n"));
   1.208 +	test(Export45() == 45*45);
   1.209 +#endif
   1.210 +#if defined(__USE46__)
   1.211 +	test.Printf(_L("Test 46\n"));
   1.212 +	test(Export46() == 46*46);
   1.213 +#endif
   1.214 +#if defined(__USE47__)
   1.215 +	test.Printf(_L("Test 47\n"));
   1.216 +	test(Export47() == 47*47);
   1.217 +#endif
   1.218 +#if defined(__USE48__)
   1.219 +	test.Printf(_L("Test 48\n"));
   1.220 +	test(Export48() == 48*48);
   1.221 +#endif
   1.222 +#if defined(__USE49__)
   1.223 +	test.Printf(_L("Test 49\n"));
   1.224 +	test(Export49() == 49*49);
   1.225 +#endif
   1.226 +#if defined(__USE50__)
   1.227 +	test.Printf(_L("Test 50\n"));
   1.228 +	test(Export50() == 50*50);
   1.229 +#endif
   1.230 +#if defined(__USE51__)
   1.231 +	test.Printf(_L("Test 51\n"));
   1.232 +	test(Export51() == 51*51);
   1.233 +#endif
   1.234 +#if defined(__USE52__)
   1.235 +	test.Printf(_L("Test 52\n"));
   1.236 +	test(Export52() == 52*52);
   1.237 +#endif
   1.238 +#if defined(__USE53__)
   1.239 +	test.Printf(_L("Test 53\n"));
   1.240 +	test(Export53() == 53*53);
   1.241 +#endif
   1.242 +#if defined(__USE54__)
   1.243 +	test.Printf(_L("Test 54\n"));
   1.244 +	test(Export54() == 54*54);
   1.245 +#endif
   1.246 +#if defined(__USE55__)
   1.247 +	test.Printf(_L("Test 55\n"));
   1.248 +	test(Export55() == 55*55);
   1.249 +#endif
   1.250 +#if defined(__USE56__)
   1.251 +	test.Printf(_L("Test 56\n"));
   1.252 +	test(Export56() == 56*56);
   1.253 +#endif
   1.254 +#if defined(__USE57__)
   1.255 +	test.Printf(_L("Test 57\n"));
   1.256 +	test(Export57() == 57*57);
   1.257 +#endif
   1.258 +#if defined(__USE58__)
   1.259 +	test.Printf(_L("Test 58\n"));
   1.260 +	test(Export58() == 58*58);
   1.261 +#endif
   1.262 +#if defined(__USE59__)
   1.263 +	test.Printf(_L("Test 59\n"));
   1.264 +	test(Export59() == 59*59);
   1.265 +#endif
   1.266 +
   1.267 +	return ver;
   1.268 +	}