]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/itutil.cpp
ICU-6.2.6.tar.gz
[apple/icu.git] / icuSources / test / intltest / itutil.cpp
CommitLineData
b75a7d8f
A
1/********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2003, 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"
b75a7d8f
A
21#include "tsmthred.h"
22#include "tsputil.h"
23#include "uobjtest.h"
374ca955 24#include "v32test.h"
b75a7d8f
A
25//#include "custrtest.h"
26//#include "ccitrtst.h"
27//#include "cloctest.h"
28//#include "ctres.h"
29//#include "ctucd.h"
30
31void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
32{
33 if (exec) logln("TestSuite Utilities: ");
34 switch (index) {
35 case 0:
b75a7d8f
A
36 name = "MultithreadTest";
37 if (exec) {
38 logln("MultithreadTest---"); logln("");
39 MultithreadTest test;
40 callTest( test, par );
41 }
42 break;
43
374ca955 44 case 1:
b75a7d8f
A
45 name = "StringTest";
46 if (exec) {
47 logln("StringTest---"); logln("");
48 StringTest test;
49 callTest( test, par );
50 }
51 break;
52
374ca955 53 case 2:
b75a7d8f
A
54 name = "UnicodeStringTest";
55 if (exec) {
56 logln("UnicodeStringTest---"); logln("");
57 UnicodeStringTest test;
58 callTest( test, par );
59 }
60 break;
61
374ca955 62 case 3:
b75a7d8f
A
63 name = "LocaleTest";
64 if (exec) {
65 logln("LocaleTest---"); logln("");
66 LocaleTest test;
67 callTest( test, par );
68 }
69 break;
70
374ca955 71 case 4:
b75a7d8f
A
72 name = "CharIterTest";
73 if (exec) {
74 logln("CharIterTest---"); logln("");
75 CharIterTest test;
76 callTest( test, par );
77 }
78 break;
79
374ca955 80 case 5:
b75a7d8f
A
81 name = "UnicodeTest";
82 if (exec) {
83 logln("UnicodeTest---"); logln("");
84 UnicodeTest test;
85 callTest( test, par );
86 }
87 break;
88
374ca955 89 case 6:
b75a7d8f
A
90 name = "ResourceBundleTest";
91 if (exec) {
92 logln("ResourceBundleTest---"); logln("");
93 ResourceBundleTest test;
94 callTest( test, par );
95 }
96 break;
374ca955 97 case 7:
b75a7d8f
A
98 name = "NewResourceBundleTest";
99 if (exec) {
100 logln("NewResourceBundleTest---"); logln("");
101 NewResourceBundleTest test;
102 callTest( test, par );
103 }
104 break;
105
374ca955 106 case 8:
b75a7d8f
A
107 name = "PUtilTest";
108 if (exec) {
109 logln("PUtilTest---"); logln("");
110 PUtilTest test;
111 callTest( test, par );
112 }
113 break;
114
374ca955
A
115 case 9:
116 name = "UObjectTest";
117 if(exec) {
118 logln ("UObjectTest---"); logln("");
119 UObjectTest test;
120 callTest( test, par );
121 }
122 break;;
123
124 case 10:
125 name = "UVector32Test";
126 if(exec) {
127 logln ("UVector32Test---"); logln("");
128 UVector32Test test;
129 callTest( test, par );
130 }
131 break;;
b75a7d8f
A
132
133 /*
134 case 8:
135 name = "LocaleTest";
136 if (exec) {
137 logln("LocaleTest---"); logln("");
138 CLocaleTest test;
139 callTest( test, par );
140 }
141 break;
b75a7d8f
A
142 */
143 default: name = ""; break; //needed to end loop
144 }
145}
146