#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.
54{
55 DEBTRACE(
"+++++++++++++++++++ BEGIN test " << schema);
56 RuntimeSALOME::setRuntime();
57
60
61 try
62 {
65 std::ofstream
f(
"toto");
68 DEBTRACE(
"+++++++++++++++++++ BEGIN execution " << schema);
70 DEBTRACE(
"+++++++++++++++++++ END execution " << schema);
71 std::ofstream g("titi");
73 g.close();
74 DEBTRACE(
"+++++++++++++++++++ END test " << schema);
75 return 0;
76 }
78 {
81 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
82 return 1;
83 }
84 catch (const std::ios_base::failure&)
85 {
87 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
88 return 1;
89 }
90 catch(CORBA::SystemException&
ex)
91 {
92 DEBTRACE(
"Caught a CORBA::SystemException.");
93 CORBA::Any tmp;
95 CORBA::TypeCode_var tc = tmp.type();
96 const char *
p = tc->name();
98 {
100 }
101 else
102 {
104 }
105 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
106 return 1;
107 }
108 catch(omniORB::fatalException& fe)
109 {
110 DEBTRACE(
"Caught omniORB::fatalException:" );
114 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
115 return 1;
116 }
117 catch(...)
118 {
119 DEBTRACE(
"Caught unknown exception.");
120 DEBTRACE(
"+++++++++++++++++++ END test in error " << schema);
121 return 1;
122 }
123}
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::Exception::what(), and YACS::ENGINE::Proc::writeDot().
Referenced by YACSPMMLBasicsTest1::testYACSdriver_LRANN(), YACSPMMLBasicsTest1::testYACSdriver_PmmlDoesNotExist(), YACSPMMLBasicsTest1::testYACSdriverLinearRegression(), and YACSPMMLBasicsTest1::testYACSdriverNeuralNetwork().