scuffed-code/icu4c/source/test/intltest/itutil.cpp

63 lines
1.9 KiB
C++
Raw Normal View History

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2008, International Business Machines Corporation and
* 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".
*/
#include "unicode/utypes.h"
1999-08-16 21:50:52 +00:00
#include "itutil.h"
#include "strtest.h"
1999-08-16 21:50:52 +00:00
#include "loctest.h"
#include "citrtest.h"
#include "ustrtest.h"
#include "ucdtest.h"
1999-08-16 21:50:52 +00:00
#include "restest.h"
#include "restsnew.h"
1999-08-16 21:50:52 +00:00
#include "tsmthred.h"
#include "tsputil.h"
#include "uobjtest.h"
#include "utxttest.h"
#include "v32test.h"
#include "uvectest.h"
#include "aliastst.h"
#include "usettest.h"
1999-08-16 21:50:52 +00:00
#define CASE(id, test) case id: \
name = #test; \
if (exec) { \
logln(#test "---"); logln(); \
test t; \
callTest(t, par); \
} \
break
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) {
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);
CASE(13, LocaleAliasTest);
CASE(14, UnicodeSetTest);
1999-08-16 21:50:52 +00:00
default: name = ""; break; //needed to end loop
}
}