Lines Matching refs:IntlTest
13 * IntlTest is a base class for tests.
33 #include "intltest.h"
247 IntlTest::appendHex(uint32_t number,
297 IntlTest::toHex(uint32_t number, int32_t digits) {
309 IntlTest::prettify(const UnicodeString &source,
345 IntlTest::prettify(const UnicodeString &source, UBool parseBackslash)
394 /* IntlTest::setICU_DATA - if the ICU_DATA environment variable is not already
403 void IntlTest::setICU_DATA() {
475 IntlTest* IntlTest::gTest = NULL;
481 if (IntlTest::gTest)
482 IntlTest::gTest->log( message );
487 if (IntlTest::gTest)
488 IntlTest::gTest->logln( message );
493 if (IntlTest::gTest)
494 IntlTest::gTest->logln();
499 if (IntlTest::gTest)
500 IntlTest::gTest->info( message );
505 if (IntlTest::gTest)
506 IntlTest::gTest->infoln( message );
511 if (IntlTest::gTest)
512 IntlTest::gTest->infoln();
517 if (IntlTest::gTest)
518 IntlTest::gTest->err();
523 if (IntlTest::gTest)
524 IntlTest::gTest->err( message );
529 if (IntlTest::gTest)
530 IntlTest::gTest->errln( message );
535 if (IntlTest::gTest)
536 IntlTest::gTest->dataerr( message );
541 if (IntlTest::gTest)
542 IntlTest::gTest->dataerrln( message );
545 IntlTest::IntlTest()
566 void IntlTest::setCaller( IntlTest* callingTest )
584 UBool IntlTest::callTest( IntlTest& testToBeCalled, char* par )
594 void IntlTest::setPath( char* pathVal )
599 UBool IntlTest::setVerbose( UBool verboseVal )
606 UBool IntlTest::setNotime( UBool no_time )
613 UBool IntlTest::setWarnOnMissingData( UBool warn_on_missing_dataVal )
620 UBool IntlTest::setNoErrMsg( UBool no_err_msgVal )
627 UBool IntlTest::setQuick( UBool quickVal )
634 UBool IntlTest::setLeaks( UBool leaksVal )
641 int32_t IntlTest::setThreadCount( int32_t count )
648 int32_t IntlTest::getErrors( void )
653 int32_t IntlTest::getDataErrors( void )
658 UBool IntlTest::runTest( char* name, char* par, char *baseName )
700 void IntlTest::runIndexedTest( int32_t /*index*/, UBool /*exec*/, const char* & /*name*/, char* /*par*/ )
714 UBool IntlTest::runTestLoop( char* testname, char* par, char *baseName )
734 IntlTest* saveTest = gTest;
819 void IntlTest::log( const UnicodeString &message )
830 void IntlTest::logln( const UnicodeString &message )
837 void IntlTest::logln( void )
847 void IntlTest::info( const UnicodeString &message )
856 void IntlTest::infoln( const UnicodeString &message )
861 void IntlTest::infoln( void )
866 int32_t IntlTest::IncErrorCount( void )
873 int32_t IntlTest::IncDataErrorCount( void )
880 void IntlTest::err()
885 void IntlTest::err( const UnicodeString &message )
891 void IntlTest::errln( const UnicodeString &message )
897 void IntlTest::dataerr( const UnicodeString &message )
908 void IntlTest::dataerrln( const UnicodeString &message )
928 void IntlTest::errcheckln(UErrorCode status, const UnicodeString &message ) {
937 void IntlTest::log(const char *fmt, ...)
951 void IntlTest::logln(const char *fmt, ...)
965 UBool IntlTest::logKnownIssue(const char *ticket, const char *fmt, ...)
977 UBool IntlTest::logKnownIssue(const char *ticket) {
981 UBool IntlTest::logKnownIssue(const char *ticket, const UnicodeString &msg) {
1003 void IntlTest::info(const char *fmt, ...)
1015 void IntlTest::infoln(const char *fmt, ...)
1027 void IntlTest::err(const char *fmt, ...)
1038 void IntlTest::errln(const char *fmt, ...)
1049 void IntlTest::dataerrln(const char *fmt, ...)
1060 void IntlTest::errcheckln(UErrorCode status, const char *fmt, ...)
1076 void IntlTest::printErrors()
1078 IntlTest::LL_message(errorList, TRUE);
1081 UBool IntlTest::printKnownIssues()
1094 void IntlTest::LL_message( UnicodeString message, UBool newline )
1152 void IntlTest::usage( void )
1173 IntlTest::run_phase2( char* name, char* par ) // supports reporting memory leaks
1214 const char *props[IntlTest::kMaxProps];
1266 if (nProps < IntlTest::kMaxProps) {
1288 "### IntlTest [-option1 -option2 ...] [testname1 testname2 ...] \n"
1298 "### To get a list of the test names type: intltest LIST \n"
1299 "### To run just the utility tests type: intltest utility \n"
1302 "### For example to list the utility tests type: intltest utility/LIST \n"
1303 "### To run just the Locale test type: intltest utility/LocaleTest \n"
1310 if (nProps > IntlTest::kMaxProps) {
1328 fprintf(stdout, " IntlTest (C++) Test Suite for \n");
1391 IntlTest::setICU_DATA(); // Must set data directory before u_init() is called.
1455 if(ctest_xml_init("intltest"))
1571 const char* IntlTest::loadTestData(UErrorCode& err){
1610 const char* IntlTest::getTestDataPath(UErrorCode& err) {
1615 const char *IntlTest::getSourceTestData(UErrorCode& /*err*/) {
1623 /* We're in icu/source/test/intltest/ */
1627 /* We're in icu/source/test/intltest/Platform/(Debug|Release) */
1635 char *IntlTest::getUnidataPath(char path[]) {
1677 const char* IntlTest::fgDataDir = NULL;
1680 const char * IntlTest::pathToDataDirectory()
1773 float IntlTest::random(int32_t* seedp) {
1798 float IntlTest::random() {
1807 IntlTest::icu_rand::icu_rand(uint32_t seed) {
1815 IntlTest::icu_rand::~icu_rand() {}
1817 void IntlTest::icu_rand::seed(uint32_t seed) {
1824 uint32_t IntlTest::icu_rand::operator() () {
1829 uint32_t IntlTest::icu_rand::getSeed() {
1858 UBool IntlTest::assertTrue(const char* message, UBool condition, UBool quiet, UBool possibleDataError, const char *file, int line) {
1884 UBool IntlTest::assertFalse(const char* message, UBool condition, UBool quiet) {
1893 UBool IntlTest::assertSuccess(const char* message, UErrorCode ec, UBool possibleDataError, const char *file, int line) {
1910 UBool IntlTest::assertEquals(const char* message,
1934 UBool IntlTest::assertEquals(const char* message,
1951 UBool IntlTest::assertEquals(const char* message,
1968 UBool IntlTest::assertEquals(const char* message,
1985 UBool IntlTest::assertEquals(const char* message,
2003 UBool IntlTest::assertEquals(const char* message,
2021 UBool IntlTest::assertEquals(const char* message,
2056 UBool IntlTest::assertTrue(const UnicodeString& message, UBool condition, UBool quiet) {
2060 UBool IntlTest::assertFalse(const UnicodeString& message, UBool condition, UBool quiet) {
2064 UBool IntlTest::assertSuccess(const UnicodeString& message, UErrorCode ec) {
2068 UBool IntlTest::assertEquals(const UnicodeString& message,
2075 UBool IntlTest::assertEquals(const UnicodeString& message,
2080 UBool IntlTest::assertEquals(const UnicodeString& message,
2085 UBool IntlTest::assertEquals(const UnicodeString& message,
2090 UBool IntlTest::assertEquals(const UnicodeString& message,
2097 UBool IntlTest::assertEquals(const UnicodeString& message,
2104 void IntlTest::setProperty(const char* propline) {
2111 const char* IntlTest::getProperty(const char* prop) {