41 #define access _access
55 DEBTRACE(
"+++++++++++++++++++ BEGIN test " << schema);
65 std::ofstream
f(
"toto");
68 DEBTRACE(
"+++++++++++++++++++ BEGIN execution " << schema);
70 DEBTRACE(
"+++++++++++++++++++ END execution " << schema);
71 std::ofstream g(
"titi");
74 DEBTRACE(
"+++++++++++++++++++ END test " << schema);
81 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
84 catch (
const std::ios_base::failure&)
87 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
90 catch(CORBA::SystemException&
ex)
92 DEBTRACE(
"Caught a CORBA::SystemException.");
95 CORBA::TypeCode_var tc = tmp.type();
96 const char *
p = tc->name();
105 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
108 catch(omniORB::fatalException& fe)
110 DEBTRACE(
"Caught omniORB::fatalException:" );
114 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
119 DEBTRACE(
"Caught unknown exception.");
120 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
128 resourcesDir =
"samples/";
138 std::string xmlFilename = resourcesDir +
"schemaLR2.xml";
141 CPPUNIT_ASSERT(ret == 0);
143 CPPUNIT_ASSERT(
p != 0);
150 CPPUNIT_ASSERT_EQUAL(str,
string(
"True"));
157 std::string xmlFilename = resourcesDir +
"schemaANN2.xml";
160 CPPUNIT_ASSERT(ret == 0);
162 CPPUNIT_ASSERT(
p != 0);
169 CPPUNIT_ASSERT_EQUAL(str,
string(
"True"));
176 std::string xmlFilename = resourcesDir +
"schemaANNLR2.xml";
179 CPPUNIT_ASSERT(ret == 0);
181 CPPUNIT_ASSERT(
p != 0);
188 CPPUNIT_ASSERT_EQUAL(str,
string(
"True"));
195 std::string xmlFilename = resourcesDir +
"schemaPmmlDoesNotExist.xml";
198 CPPUNIT_ASSERT(ret == 0);
200 CPPUNIT_ASSERT(
p != 0);
207 CPPUNIT_ASSERT_EQUAL(str,
string(
"None"));
Header de la classe PMMLlib.
int driverTest(Proc *&p, const char *schema)
void testYACSdriver_PmmlDoesNotExist()
void testYACSdriverLinearRegression()
void testYACSdriver_LRANN()
void testYACSdriverNeuralNetwork()
virtual std::string getAsString()
returns port value as a string that can be used in a GUI for example
void RunW(Scheduler *graph, int debug=0, bool fromScratch=true)
Base class for all nodes.
virtual OutputPort * getOutputPort(const std::string &name) const =0
Base class for all schema objects.
std::map< std::string, Node * > nodeMap
virtual void writeDot(std::ostream &os) const
Dump to the input stream a dot representation of the node.
static void setRuntime(long flags=UsePython+UseCorba+UseXml+UseCpp+UseSalome, int argc=0, char *argv[]=NULL)
const char * what(void) const noexcept
YACS::YACSLoader::YACSLoader * loader