#include "YACSPMMLBasicsTest1.hxx"
#include "PMMLlib.hxx"
#include "yacsconfig.h"
#include "RuntimeSALOME.hxx"
#include "PythonPorts.hxx"
#include "CORBAPorts.hxx"
#include "parsers.hxx"
#include "Proc.hxx"
#include "Exception.hxx"
#include "Executor.hxx"
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <unistd.h>
#include "YacsTrace.hxx"
Go to the source code of this file.
◆ _DEVDEBUG_
◆ driverTest()
| int driverTest |
( |
Proc *& |
p, |
|
|
const char * |
schema |
|
) |
| |
Definition at line 53 of file YACSPMMLBasicsTest1.cxx.
55 DEBTRACE(
"+++++++++++++++++++ BEGIN test " << schema);
56 RuntimeSALOME::setRuntime();
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);
void RunW(Scheduler *graph, int debug=0, bool fromScratch=true)
virtual void writeDot(std::ostream &os) const
Dump to the input stream a dot representation of the node.
const char * what(void) const noexcept
YACS::YACSLoader::YACSLoader * loader
References DEBTRACE, testCppPluginInvokation::ex, gui.CONNECTOR::f(), loader, p, YACS::ENGINE::Executor::RunW(), YACS::ENGINE::RuntimeSALOME::setRuntime(), YACS::Exception::what(), and YACS::ENGINE::Proc::writeDot().
Referenced by YACSPMMLBasicsTest1::testYACSdriver_LRANN(), YACSPMMLBasicsTest1::testYACSdriver_PmmlDoesNotExist(), YACSPMMLBasicsTest1::testYACSdriverLinearRegression(), and YACSPMMLBasicsTest1::testYACSdriverNeuralNetwork().