]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itutil.cpp
ICU-400.39.tar.gz
[apple/icu.git] / icuSources / test / intltest / itutil.cpp
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2008, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7
8 /**
9 * IntlTestUtilities is the medium level test class for everything in the directory "utility".
10 */
11
12 #include "unicode/utypes.h"
13 #include "itutil.h"
14 #include "strtest.h"
15 #include "loctest.h"
16 #include "citrtest.h"
17 #include "ustrtest.h"
18 #include "ucdtest.h"
19 #include "restest.h"
20 #include "restsnew.h"
21 #include "tsmthred.h"
22 #include "tsputil.h"
23 #include "uobjtest.h"
24 #include "utxttest.h"
25 #include "v32test.h"
26 #include "uvectest.h"
27 #include "aliastst.h"
28 #include "usettest.h"
29
30
31 #define CASE(id, test) case id: \
32 name = #test; \
33 if (exec) { \
34 logln(#test "---"); logln(); \
35 test t; \
36 callTest(t, par); \
37 } \
38 break
39
40 void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
41 {
42 if (exec) logln("TestSuite Utilities: ");
43 switch (index) {
44 CASE(0, MultithreadTest);
45 CASE(1, StringTest);
46 CASE(2, UnicodeStringTest);
47 CASE(3, LocaleTest);
48 CASE(4, CharIterTest);
49 CASE(5, UnicodeTest);
50 CASE(6, ResourceBundleTest);
51 CASE(7, NewResourceBundleTest);
52 CASE(8, PUtilTest);
53 CASE(9, UObjectTest);
54 CASE(10, UVector32Test);
55 CASE(11, UVectorTest);
56 CASE(12, UTextTest);
57 CASE(13, LocaleAliasTest);
58 CASE(14, UnicodeSetTest);
59 default: name = ""; break; //needed to end loop
60 }
61 }
62