Exemple #1
0
	MyMoblet() : mSuite("MoSync") {

#if 1
		// automated tests
#ifdef USE_AUTOMATED_TESTS
		addResTests(&mSuite);
		addMAUtilTypeTests(&mSuite);
		addMAUtilUtilTests(&mSuite);
		addMemTests(&mSuite);
		addMathTests(&mSuite);
		addStoreTests(&mSuite);
		addConnTests(&mSuite);
		addDownloaderTests(&mSuite);	//right softkey press may be used during test; release is then passed to next test, failing it.
#endif	//USE_AUTOMATED_TESTS

#ifdef USE_INTERACTIVE_TESTS
		// interactive tests
#ifndef MA_PROF_SUPPORT_STYLUS
		addCharInputTests(&mSuite);
#endif	//MA_PROF_SUPPORT_STYLUS
		addFramebufferTests(&mSuite);
		addSoundTests(&mSuite);
		addAdvGfxTests(&mSuite);
		addBasicGfxTests(&mSuite);
#ifndef MA_PROF_SUPPORT_STYLUS
		addKeypadTests(&mSuite);
#endif	//MA_PROF_SUPPORT_STYLUS
		addTimeTests(&mSuite);
		addSystemTests(&mSuite);
#endif	//USE_INTERACTIVE_TESTS
#endif	//1

		mSuite.addTestListener(new XMLOutputTestListener(maCreatePlaceholder(), "unitTest.xml"));
		mSuite.addTestListener(this);
		complete = false;

		mSuite.runNextCase();
	}