summaryrefslogtreecommitdiff
path: root/maximus/coreengine
diff options
context:
space:
mode:
authorburet2007-08-10 15:43:06 +0000
committerburet2007-08-10 15:43:06 +0000
commit66eb0bc9ae2250826b0d51c157fb7cff9418599a (patch)
tree602ee68974c9415d31cf64d5090c5c81a7842d3a /maximus/coreengine
parentc00710cfeeed40ae48356a4d1929789dd13e4727 (diff)
Modify unitary tests to be launched with a station executable
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@589 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'maximus/coreengine')
-rw-r--r--maximus/coreengine/src/Maximus.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/maximus/coreengine/src/Maximus.cpp b/maximus/coreengine/src/Maximus.cpp
index 4de4f7b83e..579b20070f 100644
--- a/maximus/coreengine/src/Maximus.cpp
+++ b/maximus/coreengine/src/Maximus.cpp
@@ -49,9 +49,12 @@ The original location of this file is /home/buret/eclipse/maximus/coreengine/src
#include <signal.h> // for 'signal()' and 'SIGINT'
using namespace std;
+// For unitary tests
+bool UNITTEST = false;
+string stationTest;
+
// For Maximus log
Logger logger(LOG_ERROR);
-//Logger logger;
// To catch signals
Maximus * pMaximus;
@@ -67,9 +70,15 @@ mMaximusLogFile(0),
mMaxTickValue(0)
{
logFunction();
-
+
try
{
+ if (UNITTEST)
+ {
+ // For unitary tests log
+ logger.setLogLevel(LOG_DEBUG);
+ }
+
mpCoreEngine = new CoreEngine();
}
catch ( Error &e )
@@ -133,7 +142,7 @@ void Maximus::init ( int argc, char * argv[] )
{"debugger", required_argument, 0, 'd'}
};
int optionIndex = 0;
- int optionChar = '0';
+ int optionChar = 0;
// Station executable
string stationExecutable;