• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /********************************************************************
2  * COPYRIGHT:
3  * Copyright (c) 1997-2007, 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 //#include "custrtest.h"
30 //#include "ccitrtst.h"
31 //#include "cloctest.h"
32 //#include "ctres.h"
33 //#include "ctucd.h"
34 
35 #define CASE(id, test) case id:                               \
36                           name = #test;                       \
37                           if (exec) {                         \
38                               logln(#test "---"); logln();    \
39                               test t;                         \
40                               callTest(t, par);               \
41                           }                                   \
42                           break
43 
runIndexedTest(int32_t index,UBool exec,const char * & name,char * par)44 void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
45 {
46     if (exec) logln("TestSuite Utilities: ");
47     switch (index) {
48         CASE(0, MultithreadTest);
49         CASE(1, StringTest);
50         CASE(2, UnicodeStringTest);
51         CASE(3, LocaleTest);
52         CASE(4, CharIterTest);
53         CASE(5, UnicodeTest);
54         CASE(6, ResourceBundleTest);
55         CASE(7, NewResourceBundleTest);
56         CASE(8, PUtilTest);
57         CASE(9, UObjectTest);
58         CASE(10, UVector32Test);
59         CASE(11, UVectorTest);
60         CASE(12, UTextTest);
61         CASE(13, MultithreadTest);
62         CASE(14, UnicodeSetTest);
63         default: name = ""; break; //needed to end loop
64     }
65 }
66 
67