Esempio n. 1
0
void unitTests()
{
	Settings settings;
	Bindings bindings = bindStandardLibrary();
	Interpreter interpreter(bindings, settings);
	runUnitTests(interpreter);
}
Esempio n. 2
0
jint Java_com_sipez_unit_UnitTestActivity_runTests(JNIEnv* env, jclass thisClass)
{
    sCallbackClass = thisClass;

    SipxPortUnitTestEnvironment::setStringOutMethod(jniLogoutputMethod);

    runUnitTests();
}
Esempio n. 3
0
// This runs our unit testing main
void setupUnitTesting()
{
	#ifdef PLATFORM_IS_WII
	#endif

	// Do all of our unit testing!
	runUnitTests();
}
Esempio n. 4
0
//---------------------------------------------------------------------------------
// main!
//---------------------------------------------------------------------------------
int main(int argc, char **argv) 
{
#ifdef PLATFORM_IS_WII
	try
	{
		// Setup the remote debugger if possible...
		DEBUG_Init(GDBSTUB_DEVICE_USB, 1);

		// Initialize filesystem to load from SD Card - This should change to NAND for official releases ...
		fatInitDefault();

		for(int i = 0; i < 100; i++)
		{
			usleep(100);
		}	

		//setupTrace("//Map.csv");
		
		srand ( time(NULL) );

		AUDIO_Init(NULL);
        ASND_Init();
        ASND_Pause(0);

		//setupUnitTesting();
		
		RunGameMain();
		
		ASND_Pause(1);
        ASND_End();

		//MemTrack::TrackListMemoryUsage();

		//shutDownTrace();

	}
	catch(int ex)
	{
		printf("\x1b[2;0H");printf("Exception Triggered, Executing Breakpoint!\n");
		ASSERT(false);

		_break();
	}
#endif

#ifdef PLATFORM_IS_WIN
	runUnitTests();
#endif

	return 0;
}
Esempio n. 5
0
int main(int argc, char const *argv[])
{
	// If no arguments have been provided, execute all tests
	if (argc < 2)
	{
		runUnitTests();
		runStorageTests();
		runTimingTests();
	}
	
	// Otherwise run the specific test provided
	else if (argc == 2)
	{
		if (strcmp(argv[1], "storage") == 0)
		{
			runStorageTests();
		}
		else if (strcmp(argv[1], "timing") == 0)
		{
			runTimingTests();
		}
		else if (strcmp(argv[1], "unit") == 0)
		{
			runUnitTests();
		}
		else
		{
			std::cout << testUsage;
			return 2;
		}
	}
	else
	{
		std::cout << testUsage;
		return 1;
	}
	return 0;
}
Esempio n. 6
0
void App::run()
{
   /* drop effective user and group ID, in case this executable has the setuid/setgid bit set
      (privileges will be re-elevated when necessary, e.g. for authenticat file reading) */
   System::dropUserAndGroupEffectiveID();

   try
   {
      SyslogLogger::initOnce(APP_SYSLOG_IDENTIFIER);

      this->cfg = new Config(argc, argv);

      if ( this->cfg->getRunUnitTests() )
         runUnitTests();
      else
         runNormal();
   }
   catch (InvalidConfigException& e)
   {
      std::cerr << std::endl;
      std::cerr << "Error: " << e.what() << std::endl;
      std::cerr << std::endl;
      std::cerr << "[BeeGFS Control Tool Version: " << BEEGFS_VERSION << std::endl;
      std::cerr << "Refer to the default config file (/etc/beegfs/beegfs-client.conf)" << std::endl;
      std::cerr << "or visit http://www.beegfs.com to find out about configuration options.]"
         << std::endl;
      std::cerr << std::endl;

      if(this->log)
         log->logErr(e.what() );

      appResult = APPCODE_INVALID_CONFIG;
      return;
   }
   catch (std::exception& e)
   {
      std::cerr << std::endl;
      std::cerr << "Unrecoverable error: " << e.what() << std::endl;
      std::cerr << std::endl;

      if(this->log)
         log->logErr(e.what() );

      appResult = APPCODE_RUNTIME_ERROR;
      return;
   }
}
Esempio n. 7
0
int main(int argc, char *argv[])
{
	runUnitTests();
	exit(0);
}
Esempio n. 8
0
int main(int argc, char **argv) 
{
	int res = runUnitTests(argc, argv);
	std::cin.get();
	return res;
}