kerneltest/e32test/dll/t_xver2.cpp
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test\dll\t_xver2.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32test.h>
       
    19 #include "t_ver2.h"
       
    20 
       
    21 RTest test(_L("T_XVER2"));
       
    22 
       
    23 
       
    24 TInt E32Main()
       
    25 	{
       
    26 	test.Title();
       
    27 
       
    28 	TUint ver = (TUint)Export01();
       
    29 	test.Printf(_L("Version %d.%d\n"), ver>>16, ver&0xffff);
       
    30 
       
    31 #if defined(__USE02__)
       
    32 	test.Printf(_L("Test 2\n"));
       
    33 	test(Export02() == 2*2);
       
    34 #endif
       
    35 #if defined(__USE03__)
       
    36 	test.Printf(_L("Test 3\n"));
       
    37 	test(Export03() == 3*3);
       
    38 #endif
       
    39 #if defined(__USE04__)
       
    40 	test.Printf(_L("Test 4\n"));
       
    41 	test(Export04() == 4*4);
       
    42 #endif
       
    43 #if defined(__USE05__)
       
    44 	test.Printf(_L("Test 5\n"));
       
    45 	test(Export05() == 5*5);
       
    46 #endif
       
    47 #if defined(__USE06__)
       
    48 	test.Printf(_L("Test 6\n"));
       
    49 	test(Export06() == 6*6);
       
    50 #endif
       
    51 #if defined(__USE07__)
       
    52 	test.Printf(_L("Test 7\n"));
       
    53 	test(Export07() == 7*7);
       
    54 #endif
       
    55 #if defined(__USE08__)
       
    56 	test.Printf(_L("Test 8\n"));
       
    57 	test(Export08() == 8*8);
       
    58 #endif
       
    59 #if defined(__USE09__)
       
    60 	test.Printf(_L("Test 9\n"));
       
    61 	test(Export09() == 9*9);
       
    62 #endif
       
    63 #if defined(__USE10__)
       
    64 	test.Printf(_L("Test 10\n"));
       
    65 	test(Export10() == 10*10);
       
    66 #endif
       
    67 #if defined(__USE11__)
       
    68 	test.Printf(_L("Test 11\n"));
       
    69 	test(Export11() == 11*11);
       
    70 #endif
       
    71 #if defined(__USE12__)
       
    72 	test.Printf(_L("Test 12\n"));
       
    73 	test(Export12() == 12*12);
       
    74 #endif
       
    75 #if defined(__USE13__)
       
    76 	test.Printf(_L("Test 13\n"));
       
    77 	test(Export13() == 13*13);
       
    78 #endif
       
    79 #if defined(__USE14__)
       
    80 	test.Printf(_L("Test 14\n"));
       
    81 	test(Export14() == 14*14);
       
    82 #endif
       
    83 #if defined(__USE15__)
       
    84 	test.Printf(_L("Test 15\n"));
       
    85 	test(Export15() == 15*15);
       
    86 #endif
       
    87 #if defined(__USE16__)
       
    88 	test.Printf(_L("Test 16\n"));
       
    89 	test(Export16() == 16*16);
       
    90 #endif
       
    91 #if defined(__USE17__)
       
    92 	test.Printf(_L("Test 17\n"));
       
    93 	test(Export17() == 17*17);
       
    94 #endif
       
    95 #if defined(__USE18__)
       
    96 	test.Printf(_L("Test 18\n"));
       
    97 	test(Export18() == 18*18);
       
    98 #endif
       
    99 #if defined(__USE19__)
       
   100 	test.Printf(_L("Test 19\n"));
       
   101 	test(Export19() == 19*19);
       
   102 #endif
       
   103 #if defined(__USE20__)
       
   104 	test.Printf(_L("Test 20\n"));
       
   105 	test(Export20() == 20*20);
       
   106 #endif
       
   107 #if defined(__USE21__)
       
   108 	test.Printf(_L("Test 21\n"));
       
   109 	test(Export21() == 21*21);
       
   110 #endif
       
   111 #if defined(__USE22__)
       
   112 	test.Printf(_L("Test 22\n"));
       
   113 	test(Export22() == 22*22);
       
   114 #endif
       
   115 #if defined(__USE23__)
       
   116 	test.Printf(_L("Test 23\n"));
       
   117 	test(Export23() == 23*23);
       
   118 #endif
       
   119 #if defined(__USE24__)
       
   120 	test.Printf(_L("Test 24\n"));
       
   121 	test(Export24() == 24*24);
       
   122 #endif
       
   123 #if defined(__USE25__)
       
   124 	test.Printf(_L("Test 25\n"));
       
   125 	test(Export25() == 25*25);
       
   126 #endif
       
   127 #if defined(__USE26__)
       
   128 	test.Printf(_L("Test 26\n"));
       
   129 	test(Export26() == 26*26);
       
   130 #endif
       
   131 #if defined(__USE27__)
       
   132 	test.Printf(_L("Test 27\n"));
       
   133 	test(Export27() == 27*27);
       
   134 #endif
       
   135 #if defined(__USE28__)
       
   136 	test.Printf(_L("Test 28\n"));
       
   137 	test(Export28() == 28*28);
       
   138 #endif
       
   139 #if defined(__USE29__)
       
   140 	test.Printf(_L("Test 29\n"));
       
   141 	test(Export29() == 29*29);
       
   142 #endif
       
   143 #if defined(__USE30__)
       
   144 	test.Printf(_L("Test 30\n"));
       
   145 	test(Export30() == 30*30);
       
   146 #endif
       
   147 #if defined(__USE31__)
       
   148 	test.Printf(_L("Test 31\n"));
       
   149 	test(Export31() == 31*31);
       
   150 #endif
       
   151 #if defined(__USE32__)
       
   152 	test.Printf(_L("Test 32\n"));
       
   153 	test(Export32() == 32*32);
       
   154 #endif
       
   155 #if defined(__USE33__)
       
   156 	test.Printf(_L("Test 33\n"));
       
   157 	test(Export33() == 33*33);
       
   158 #endif
       
   159 #if defined(__USE34__)
       
   160 	test.Printf(_L("Test 34\n"));
       
   161 	test(Export34() == 34*34);
       
   162 #endif
       
   163 #if defined(__USE35__)
       
   164 	test.Printf(_L("Test 35\n"));
       
   165 	test(Export35() == 35*35);
       
   166 #endif
       
   167 #if defined(__USE36__)
       
   168 	test.Printf(_L("Test 36\n"));
       
   169 	test(Export36() == 36*36);
       
   170 #endif
       
   171 #if defined(__USE37__)
       
   172 	test.Printf(_L("Test 37\n"));
       
   173 	test(Export37() == 37*37);
       
   174 #endif
       
   175 #if defined(__USE38__)
       
   176 	test.Printf(_L("Test 38\n"));
       
   177 	test(Export38() == 38*38);
       
   178 #endif
       
   179 #if defined(__USE39__)
       
   180 	test.Printf(_L("Test 39\n"));
       
   181 	test(Export39() == 39*39);
       
   182 #endif
       
   183 #if defined(__USE40__)
       
   184 	test.Printf(_L("Test 40\n"));
       
   185 	test(Export40() == 40*40);
       
   186 #endif
       
   187 #if defined(__USE41__)
       
   188 	test.Printf(_L("Test 41\n"));
       
   189 	test(Export41() == 41*41);
       
   190 #endif
       
   191 #if defined(__USE42__)
       
   192 	test.Printf(_L("Test 42\n"));
       
   193 	test(Export42() == 42*42);
       
   194 #endif
       
   195 #if defined(__USE43__)
       
   196 	test.Printf(_L("Test 43\n"));
       
   197 	test(Export43() == 43*43);
       
   198 #endif
       
   199 #if defined(__USE44__)
       
   200 	test.Printf(_L("Test 44\n"));
       
   201 	test(Export44() == 44*44);
       
   202 #endif
       
   203 #if defined(__USE45__)
       
   204 	test.Printf(_L("Test 45\n"));
       
   205 	test(Export45() == 45*45);
       
   206 #endif
       
   207 #if defined(__USE46__)
       
   208 	test.Printf(_L("Test 46\n"));
       
   209 	test(Export46() == 46*46);
       
   210 #endif
       
   211 #if defined(__USE47__)
       
   212 	test.Printf(_L("Test 47\n"));
       
   213 	test(Export47() == 47*47);
       
   214 #endif
       
   215 #if defined(__USE48__)
       
   216 	test.Printf(_L("Test 48\n"));
       
   217 	test(Export48() == 48*48);
       
   218 #endif
       
   219 #if defined(__USE49__)
       
   220 	test.Printf(_L("Test 49\n"));
       
   221 	test(Export49() == 49*49);
       
   222 #endif
       
   223 #if defined(__USE50__)
       
   224 	test.Printf(_L("Test 50\n"));
       
   225 	test(Export50() == 50*50);
       
   226 #endif
       
   227 #if defined(__USE51__)
       
   228 	test.Printf(_L("Test 51\n"));
       
   229 	test(Export51() == 51*51);
       
   230 #endif
       
   231 #if defined(__USE52__)
       
   232 	test.Printf(_L("Test 52\n"));
       
   233 	test(Export52() == 52*52);
       
   234 #endif
       
   235 #if defined(__USE53__)
       
   236 	test.Printf(_L("Test 53\n"));
       
   237 	test(Export53() == 53*53);
       
   238 #endif
       
   239 #if defined(__USE54__)
       
   240 	test.Printf(_L("Test 54\n"));
       
   241 	test(Export54() == 54*54);
       
   242 #endif
       
   243 #if defined(__USE55__)
       
   244 	test.Printf(_L("Test 55\n"));
       
   245 	test(Export55() == 55*55);
       
   246 #endif
       
   247 #if defined(__USE56__)
       
   248 	test.Printf(_L("Test 56\n"));
       
   249 	test(Export56() == 56*56);
       
   250 #endif
       
   251 #if defined(__USE57__)
       
   252 	test.Printf(_L("Test 57\n"));
       
   253 	test(Export57() == 57*57);
       
   254 #endif
       
   255 #if defined(__USE58__)
       
   256 	test.Printf(_L("Test 58\n"));
       
   257 	test(Export58() == 58*58);
       
   258 #endif
       
   259 #if defined(__USE59__)
       
   260 	test.Printf(_L("Test 59\n"));
       
   261 	test(Export59() == 59*59);
       
   262 #endif
       
   263 
       
   264 	return ver;
       
   265 	}