41 #define access _access
49 using namespace YACS::ENGINE;
55 DEBTRACE(
"+++++++++++++++++++ BEGIN test " << schema);
63 p=loader.
load(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);
149 CPPUNIT_ASSERT_EQUAL(str,
string(
"True"));
156 std::string xmlFilename = resourcesDir +
"schemaANN2.xml";
159 CPPUNIT_ASSERT(ret == 0);
161 CPPUNIT_ASSERT(p != 0);
167 CPPUNIT_ASSERT_EQUAL(str,
string(
"True"));
174 std::string xmlFilename = resourcesDir +
"schemaANNLR2.xml";
177 CPPUNIT_ASSERT(ret == 0);
179 CPPUNIT_ASSERT(p != 0);
185 CPPUNIT_ASSERT_EQUAL(str,
string(
"True"));
192 std::string xmlFilename = resourcesDir +
"schemaPmmlDoesNotExist.xml";
195 CPPUNIT_ASSERT(ret == 0);
197 CPPUNIT_ASSERT(p != 0);
203 CPPUNIT_ASSERT_EQUAL(str,
string(
"None"));