-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <unistd.h>
#endif
-//#define _DEVDEBUG_
+#define _DEVDEBUG_
#include "YacsTrace.hxx"
using namespace YACS::ENGINE;
void YACSPMMLBasicsTest1::setUp()
{
-#ifdef WIN32
- const char* p = std::getenv("YACS_ROOT_DIR");
- std::string strP("");
- if (p)
- strP = std::string(p);
- else
- throw std::string("unable to get YACS_ROOT_DIR");
- resourcesDir = strP;
- resourcesDir += "/share/salome/yacssamples/";
-#else
- resourcesDir = getenv("YACS_ROOT_DIR");
- resourcesDir += "/share/salome/yacssamples/";
-#endif
+ resourcesDir = "samples/";
}
void YACSPMMLBasicsTest1::tearDown()
YACS::ENGINE::Node* node = p->nodeMap[string("PyGetRes")];
YACS::ENGINE::OutputPort* outputPort = node->getOutputPort(string("res"));
string str = outputPort->getAsString();
+ DEBTRACE("str = " << str);
CPPUNIT_ASSERT_EQUAL(str, string("True"));
delete p;
}
YACS::ENGINE::Node* node = p->nodeMap[string("PyGetRes")];
YACS::ENGINE::OutputPort* outputPort = node->getOutputPort(string("res"));
string str = outputPort->getAsString();
+ DEBTRACE("str = " << str);
CPPUNIT_ASSERT_EQUAL(str, string("True"));
delete p;
}
YACS::ENGINE::Node* node = p->nodeMap[string("PyGetRes")];
YACS::ENGINE::OutputPort* outputPort = node->getOutputPort(string("res"));
string str = outputPort->getAsString();
+ DEBTRACE("str = " << str);
CPPUNIT_ASSERT_EQUAL(str, string("True"));
delete p;
}
YACS::ENGINE::Node* node = p->nodeMap[string("PyGetRes")];
YACS::ENGINE::OutputPort* outputPort = node->getOutputPort(string("res"));
string str = outputPort->getAsString();
+ DEBTRACE("str = " << str);
CPPUNIT_ASSERT_EQUAL(str, string("None"));
delete p;
}