2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2008-01-02 20:39:11 +00:00
|
|
|
* Copyright (c) 1997-2008, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IntlTestUtilities is the medium level test class for everything in the directory "utility".
|
|
|
|
*/
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "itutil.h"
|
1999-11-22 20:29:44 +00:00
|
|
|
#include "strtest.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "loctest.h"
|
|
|
|
#include "citrtest.h"
|
|
|
|
#include "ustrtest.h"
|
2003-02-26 23:22:03 +00:00
|
|
|
#include "ucdtest.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "restest.h"
|
2000-05-15 18:39:17 +00:00
|
|
|
#include "restsnew.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "tsmthred.h"
|
|
|
|
#include "tsputil.h"
|
2002-11-27 21:20:20 +00:00
|
|
|
#include "uobjtest.h"
|
2005-05-21 01:47:26 +00:00
|
|
|
#include "utxttest.h"
|
2003-12-08 07:12:34 +00:00
|
|
|
#include "v32test.h"
|
2005-08-15 16:11:39 +00:00
|
|
|
#include "uvectest.h"
|
|
|
|
#include "aliastst.h"
|
2007-07-19 04:33:20 +00:00
|
|
|
#include "usettest.h"
|
2008-01-02 20:39:11 +00:00
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2007-07-19 04:33:20 +00:00
|
|
|
#define CASE(id, test) case id: \
|
|
|
|
name = #test; \
|
|
|
|
if (exec) { \
|
|
|
|
logln(#test "---"); logln(); \
|
|
|
|
test t; \
|
|
|
|
callTest(t, par); \
|
|
|
|
} \
|
|
|
|
break
|
|
|
|
|
2000-08-14 21:42:36 +00:00
|
|
|
void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
|
1999-08-16 21:50:52 +00:00
|
|
|
{
|
|
|
|
if (exec) logln("TestSuite Utilities: ");
|
|
|
|
switch (index) {
|
2007-07-19 04:33:20 +00:00
|
|
|
CASE(0, MultithreadTest);
|
|
|
|
CASE(1, StringTest);
|
|
|
|
CASE(2, UnicodeStringTest);
|
|
|
|
CASE(3, LocaleTest);
|
|
|
|
CASE(4, CharIterTest);
|
|
|
|
CASE(5, UnicodeTest);
|
|
|
|
CASE(6, ResourceBundleTest);
|
|
|
|
CASE(7, NewResourceBundleTest);
|
|
|
|
CASE(8, PUtilTest);
|
|
|
|
CASE(9, UObjectTest);
|
|
|
|
CASE(10, UVector32Test);
|
|
|
|
CASE(11, UVectorTest);
|
|
|
|
CASE(12, UTextTest);
|
2008-01-02 20:39:11 +00:00
|
|
|
CASE(13, LocaleAliasTest);
|
2007-07-19 04:33:20 +00:00
|
|
|
CASE(14, UnicodeSetTest);
|
1999-08-16 21:50:52 +00:00
|
|
|
default: name = ""; break; //needed to end loop
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|