ParCompMarkTest::TestApplication Class Reference

#include <TestApplication.h>

List of all members.


Detailed Description

Test suite for ParCompMark::Application.

This is a CppUnit test suite for class ParCompMark::Application of project ParCompMark.

Definition at line 56 of file TestApplication.h.


Public Member Functions

void setUp ()
 Sets up context before running a test.
void tearDown ()
 Cleans up after the test run.

Protected Member Functions

void test_constructor ()
 Tests constructor Application::Application().
void test_destructor ()
 Tests destructor Application::~Application().
void test_complement_int_int ()
 Tests method Application::complement(int first, int second).
void test_parseCommandLine_cu32_cchar_pp ()
 Tests method Application::parseCommandLine(const u32 &argc, const char ** &argv).
void test_showHelp_cstd__string ()
 Tests method Application::showHelp(const std::string &strarg).
void test_showVersion_cstd__string ()
 Tests method Application::showVersion(const std::string &strarg).
void test_setCommanderOn_cstd__string ()
 Tests method Application::setCommanderOn(const std::string &strarg).
void test_setGUIOn_cstd__string ()
 Tests method Application::setGUIOn(const std::string &strarg).
void test_setLowLevelOn_cstd__string ()
 Tests method Application::setLowLevelOn(const std::string &strarg).
void test_setLowLevelScriptFile_cstd__string ()
 Tests method Application::setLowLevelScriptFile(const std::string &strarg).
void test_setDynamicScriptFile_cstd__string ()
 Tests method Application::setDynamicScriptFile(const std::string &strarg).
void test_setScenarioScriptFile_cstd__string ()
 Tests method Application::setScenarioScriptFile(const std::string &strarg).
void test_setCluster_cstd__string ()
 Tests method Application::setCluster(const std::string &strarg).
void test_setParameters_cstd__string ()
 Tests method Application::setParameters(const std::string &strarg).
void test_setInput_cstd__string ()
 Tests method Application::setInput(const std::string &strarg).
void test_setOutput_cstd__string ()
 Tests method Application::setOutput(const std::string &strarg).
void test_setExpectedHostCount_cstd__string ()
 Tests method Application::setExpectedHostCount(const std::string &hostCount).
void test_setUserInterface_cstd__string ()
 Tests method Application::setUserInterface(const std::string &strUI).
void test_hasEnvironmentVariable_cstd__string ()
 Tests method Application::hasEnvironmentVariable(const std::string &name).
void test_getEnvironmentVariable_cstd__string ()
 Tests method Application::getEnvironmentVariable(const std::string &name).
void test_terminateHandler ()
 Tests method Application::terminateHandler().
void test_terminateHandlerNOP ()
 Tests method Application::terminateHandlerNOP().
void test_unexpectedHandler ()
 Tests method Application::unexpectedHandler().
void test_segfaultHandler_int ()
 Tests method Application::segfaultHandler(int value).
void test_interruptHandler_int ()
 Tests method Application::interruptHandler(int value).
void test_getInstance ()
 Tests method Application::getInstance().
void test_setupHandlers ()
 Tests method Application::setupHandlers().
void test_initialize ()
 Tests method Application::initialize().
void test_finalize ()
 Tests method Application::finalize().
void test_finalizeCommander ()
 Tests method Application::finalizeCommander().
void test_finalizeSoldier ()
 Tests method Application::finalizeSoldier().
void test_setFromConfigOptions ()
 Tests method Application::setFromConfigOptions().
void test_createVirtualMachines ()
 Tests method Application::createVirtualMachines().
void test_startOperation ()
 Tests method Application::startOperation().
void test_writeOutput ()
 Tests method Application::writeOutput().
void test_waitForOutput ()
 Tests method Application::waitForOutput().
void test_quit ()
 Tests method Application::quit().
void test_compileDynamic ()
 Tests method Application::compileDynamic().
void test_start ()
 Tests method Application::start().
void test_stop ()
 Tests method Application::stop().
void test_autoDetection ()
 Tests method Application::autoDetection().
void test_cleanup ()
 Tests method Application::cleanup().
void test_getHostListForSquirrel ()
 Tests method Application::getHostListForSquirrel().
void test_getLowLevelScriptForSquirrel ()
 Tests method Application::getLowLevelScriptForSquirrel().
void test_getDynamicScriptForSquirrel ()
 Tests method Application::getDynamicScriptForSquirrel().
void test_hasScenarioScript ()
 Tests method Application::hasScenarioScript().
void test_getDynamicScriptParametersForSquirrel ()
 Tests method Application::getDynamicScriptParametersForSquirrel().
void test_getProgramInfo ()
 Tests method Application::getProgramInfo().
void test_calculateMessageSendTime ()
 Tests method Application::calculateMessageSendTime().
void test__pseudoStop ()
 Tests method Application::_pseudoStop().
void test_commanderOperation ()
 Tests method Application::commanderOperation().
void test_soldierOperation ()
 Tests method Application::soldierOperation().
void test_textUserInterface ()
 Tests method Application::textUserInterface().
void test_noUserInterface ()
 Tests method Application::noUserInterface().
void test_executeUserCommand_cstd__string ()
 Tests method Application::executeUserCommand(const std::string &command).
void test_processSquirrelCommandList ()
 Tests method Application::processSquirrelCommandList().
void test_doPostCommand ()
 Tests method Application::doPostCommand().
void test_loadLowLevelScript_cchar_p ()
 Tests method Application::loadLowLevelScript(const char * filename).
void test_loadDynamicScript_cchar_p ()
 Tests method Application::loadDynamicScript(const char * filename).
void test_loadScenarioScript_cchar_p ()
 Tests method Application::loadScenarioScript(const char * filename).
void test_pushSquirrelCommand_cchar_p ()
 Tests method Application::pushSquirrelCommand(const char * command).
void test_createLowLevelScript_cstd__string ()
 Tests method Application::createLowLevelScript(const std::string &clusterDescription).
void test_processScenarioScript ()
 Tests method Application::processScenarioScript().
void test_setEnvironmentVariablesToSquirrel ()
 Tests method Application::setEnvironmentVariablesToSquirrel().
void test_initializeDynamicScriptParameters_cbool ()
 Tests method Application::initializeDynamicScriptParameters(const bool &reset).
void test_retrieveDynamicScriptParameters ()
 Tests method Application::retrieveDynamicScriptParameters().
void test__loadScenario ()
 Tests method Application::_loadScenario().
void test__loadDynamic ()
 Tests method Application::_loadDynamic().
void test__compileDynamic ()
 Tests method Application::_compileDynamic().
void test__start ()
 Tests method Application::_start().
void test__stop ()
 Tests method Application::_stop().
void test__quit ()
 Tests method Application::_quit().

Member Function Documentation

void ParCompMarkTest::TestApplication::setUp (  ) 

Sets up context before running a test.

Definition at line 33 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::tearDown (  ) 

Cleans up after the test run.

Definition at line 57 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__compileDynamic (  )  [protected]

Tests method Application::_compileDynamic().

Definition at line 1025 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__loadDynamic (  )  [protected]

Tests method Application::_loadDynamic().

Definition at line 1011 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__loadScenario (  )  [protected]

Tests method Application::_loadScenario().

Definition at line 997 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__pseudoStop (  )  [protected]

Tests method Application::_pseudoStop().

Definition at line 759 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__quit (  )  [protected]

Tests method Application::_quit().

Definition at line 1067 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__start (  )  [protected]

Tests method Application::_start().

Definition at line 1039 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test__stop (  )  [protected]

Tests method Application::_stop().

Definition at line 1053 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_autoDetection (  )  [protected]

Tests method Application::autoDetection().

Definition at line 633 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_calculateMessageSendTime (  )  [protected]

Tests method Application::calculateMessageSendTime().

Definition at line 745 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_cleanup (  )  [protected]

Tests method Application::cleanup().

Definition at line 647 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_commanderOperation (  )  [protected]

Tests method Application::commanderOperation().

Definition at line 773 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_compileDynamic (  )  [protected]

Tests method Application::compileDynamic().

Definition at line 591 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_complement_int_int (  )  [protected]

Tests method Application::complement(int first, int second).

Definition at line 96 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_constructor (  )  [protected]

Tests constructor Application::Application().

Definition at line 67 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_createLowLevelScript_cstd__string (  )  [protected]

Tests method Application::createLowLevelScript(const std::string &clusterDescription).

Definition at line 927 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_createVirtualMachines (  )  [protected]

Tests method Application::createVirtualMachines().

Definition at line 520 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_destructor (  )  [protected]

Tests destructor Application::~Application().

Definition at line 81 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_doPostCommand (  )  [protected]

Tests method Application::doPostCommand().

Definition at line 857 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_executeUserCommand_cstd__string (  )  [protected]

Tests method Application::executeUserCommand(const std::string &command).

Definition at line 829 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_finalize (  )  [protected]

Tests method Application::finalize().

Definition at line 464 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_finalizeCommander (  )  [protected]

Tests method Application::finalizeCommander().

Definition at line 478 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_finalizeSoldier (  )  [protected]

Tests method Application::finalizeSoldier().

Definition at line 492 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getDynamicScriptForSquirrel (  )  [protected]

Tests method Application::getDynamicScriptForSquirrel().

Definition at line 689 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getDynamicScriptParametersForSquirrel (  )  [protected]

Tests method Application::getDynamicScriptParametersForSquirrel().

Definition at line 717 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getEnvironmentVariable_cstd__string (  )  [protected]

Tests method Application::getEnvironmentVariable(const std::string &name).

Definition at line 334 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getHostListForSquirrel (  )  [protected]

Tests method Application::getHostListForSquirrel().

Definition at line 661 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getInstance (  )  [protected]

Tests method Application::getInstance().

Definition at line 418 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getLowLevelScriptForSquirrel (  )  [protected]

Tests method Application::getLowLevelScriptForSquirrel().

Definition at line 675 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_getProgramInfo (  )  [protected]

Tests method Application::getProgramInfo().

Definition at line 731 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_hasEnvironmentVariable_cstd__string (  )  [protected]

Tests method Application::hasEnvironmentVariable(const std::string &name).

Definition at line 320 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_hasScenarioScript (  )  [protected]

Tests method Application::hasScenarioScript().

Definition at line 703 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_initialize (  )  [protected]

Tests method Application::initialize().

Definition at line 450 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_initializeDynamicScriptParameters_cbool (  )  [protected]

Tests method Application::initializeDynamicScriptParameters(const bool &reset).

Definition at line 969 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_interruptHandler_int (  )  [protected]

Tests method Application::interruptHandler(int value).

Definition at line 404 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_loadDynamicScript_cchar_p (  )  [protected]

Tests method Application::loadDynamicScript(const char * filename).

Definition at line 885 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_loadLowLevelScript_cchar_p (  )  [protected]

Tests method Application::loadLowLevelScript(const char * filename).

Definition at line 871 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_loadScenarioScript_cchar_p (  )  [protected]

Tests method Application::loadScenarioScript(const char * filename).

Definition at line 899 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_noUserInterface (  )  [protected]

Tests method Application::noUserInterface().

Definition at line 815 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_parseCommandLine_cu32_cchar_pp (  )  [protected]

Tests method Application::parseCommandLine(const u32 &argc, const char ** &argv).

Definition at line 110 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_processScenarioScript (  )  [protected]

Tests method Application::processScenarioScript().

Definition at line 941 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_processSquirrelCommandList (  )  [protected]

Tests method Application::processSquirrelCommandList().

Definition at line 843 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_pushSquirrelCommand_cchar_p (  )  [protected]

Tests method Application::pushSquirrelCommand(const char * command).

Definition at line 913 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_quit (  )  [protected]

Tests method Application::quit().

Definition at line 577 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_retrieveDynamicScriptParameters (  )  [protected]

Tests method Application::retrieveDynamicScriptParameters().

Definition at line 983 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_segfaultHandler_int (  )  [protected]

Tests method Application::segfaultHandler(int value).

Definition at line 390 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setCluster_cstd__string (  )  [protected]

Tests method Application::setCluster(const std::string &strarg).

Definition at line 236 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setCommanderOn_cstd__string (  )  [protected]

Tests method Application::setCommanderOn(const std::string &strarg).

Definition at line 152 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setDynamicScriptFile_cstd__string (  )  [protected]

Tests method Application::setDynamicScriptFile(const std::string &strarg).

Definition at line 208 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setEnvironmentVariablesToSquirrel (  )  [protected]

Tests method Application::setEnvironmentVariablesToSquirrel().

Definition at line 955 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setExpectedHostCount_cstd__string (  )  [protected]

Tests method Application::setExpectedHostCount(const std::string &hostCount).

Definition at line 292 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setFromConfigOptions (  )  [protected]

Tests method Application::setFromConfigOptions().

Definition at line 506 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setGUIOn_cstd__string (  )  [protected]

Tests method Application::setGUIOn(const std::string &strarg).

Definition at line 166 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setInput_cstd__string (  )  [protected]

Tests method Application::setInput(const std::string &strarg).

Definition at line 264 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setLowLevelOn_cstd__string (  )  [protected]

Tests method Application::setLowLevelOn(const std::string &strarg).

Definition at line 180 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setLowLevelScriptFile_cstd__string (  )  [protected]

Tests method Application::setLowLevelScriptFile(const std::string &strarg).

Definition at line 194 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setOutput_cstd__string (  )  [protected]

Tests method Application::setOutput(const std::string &strarg).

Definition at line 278 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setParameters_cstd__string (  )  [protected]

Tests method Application::setParameters(const std::string &strarg).

Definition at line 250 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setScenarioScriptFile_cstd__string (  )  [protected]

Tests method Application::setScenarioScriptFile(const std::string &strarg).

Definition at line 222 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setupHandlers (  )  [protected]

Tests method Application::setupHandlers().

Definition at line 436 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_setUserInterface_cstd__string (  )  [protected]

Tests method Application::setUserInterface(const std::string &strUI).

Definition at line 306 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_showHelp_cstd__string (  )  [protected]

Tests method Application::showHelp(const std::string &strarg).

Definition at line 124 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_showVersion_cstd__string (  )  [protected]

Tests method Application::showVersion(const std::string &strarg).

Definition at line 138 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_soldierOperation (  )  [protected]

Tests method Application::soldierOperation().

Definition at line 787 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_start (  )  [protected]

Tests method Application::start().

Definition at line 605 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_startOperation (  )  [protected]

Tests method Application::startOperation().

Definition at line 534 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_stop (  )  [protected]

Tests method Application::stop().

Definition at line 619 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_terminateHandler (  )  [protected]

Tests method Application::terminateHandler().

Definition at line 348 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_terminateHandlerNOP (  )  [protected]

Tests method Application::terminateHandlerNOP().

Definition at line 362 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_textUserInterface (  )  [protected]

Tests method Application::textUserInterface().

Definition at line 801 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_unexpectedHandler (  )  [protected]

Tests method Application::unexpectedHandler().

Definition at line 376 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_waitForOutput (  )  [protected]

Tests method Application::waitForOutput().

Definition at line 563 of file TestApplication.cpp.

void ParCompMarkTest::TestApplication::test_writeOutput (  )  [protected]

Tests method Application::writeOutput().

Definition at line 549 of file TestApplication.cpp.


The documentation for this class was generated from the following files: