You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -49,91 +49,103 @@ extern "C" void init_demangler(int, int, int);
|
||||
|
||||
using namespace execplan;
|
||||
|
||||
class ExecPlanTest : public CppUnit::TestFixture {
|
||||
class ExecPlanTest : public CppUnit::TestFixture
|
||||
{
|
||||
|
||||
CPPUNIT_TEST_SUITE( ExecPlanTest );
|
||||
CPPUNIT_TEST_SUITE( ExecPlanTest );
|
||||
|
||||
CPPUNIT_TEST( selectExecutionPlan_16 );
|
||||
CPPUNIT_TEST( selectExecutionPlan_16 );
|
||||
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
private:
|
||||
public:
|
||||
|
||||
static void walkfnString(const ParseTree* n)
|
||||
{
|
||||
char *r;
|
||||
static bool is_init = false;
|
||||
const char* mname = typeid(*(n->data())).name();
|
||||
if (!is_init)
|
||||
{
|
||||
::init_demangler(0, 0, 0);
|
||||
is_init = true;
|
||||
}
|
||||
r = ::cplus_demangle_with_style(mname, 7, 27);
|
||||
if (r != 0)
|
||||
{
|
||||
//cout << "mangle: " << mname << " demangle: " << r << endl;
|
||||
::free(r);
|
||||
}
|
||||
if (typeid(*(n->data())) == typeid(SimpleFilter))
|
||||
{
|
||||
cout << "SimpleFilter: " << endl;
|
||||
const SimpleFilter* sf = dynamic_cast<SimpleFilter*>(n->data());
|
||||
const ReturnedColumn* lhs = sf->lhs();
|
||||
const ReturnedColumn* rhs = sf->rhs();
|
||||
const Operator* op = sf->op();
|
||||
cout << '\t' << lhs->data() << ' ' << op->data() << ' ' << rhs->data();
|
||||
cout << endl << "\t\t";
|
||||
if (typeid(*lhs) == typeid(SimpleColumn))
|
||||
{
|
||||
cout << "SimpleColumn: " << lhs->data() << " / ";
|
||||
}
|
||||
else if (typeid(*lhs) == typeid(ConstantColumn))
|
||||
{
|
||||
cout << "ConstantColumn: " << lhs->data() << " / ";
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "UNK: " << lhs->data() << " / ";
|
||||
}
|
||||
cout << "Operator: " << op->data() << " / ";
|
||||
if (typeid(*rhs) == typeid(SimpleColumn))
|
||||
{
|
||||
cout << "SimpleColumn: " << rhs->data();
|
||||
}
|
||||
else if (typeid(*rhs) == typeid(ConstantColumn))
|
||||
{
|
||||
cout << "ConstantColumn: " << rhs->data();
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "UNK: " << rhs->data();
|
||||
}
|
||||
}
|
||||
else if (typeid(*(n->data())) == typeid(Operator))
|
||||
{
|
||||
cout << "Operator: ";
|
||||
const Operator* op = dynamic_cast<Operator*>(n->data());
|
||||
cout << '\t' << op->data();
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << mname << " -x-: ";
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
static void walkfnString(const ParseTree* n)
|
||||
{
|
||||
char* r;
|
||||
static bool is_init = false;
|
||||
const char* mname = typeid(*(n->data())).name();
|
||||
|
||||
void setUp() {
|
||||
}
|
||||
|
||||
void tearDown() {
|
||||
}
|
||||
|
||||
void selectExecutionPlan_16() {
|
||||
if (!is_init)
|
||||
{
|
||||
::init_demangler(0, 0, 0);
|
||||
is_init = true;
|
||||
}
|
||||
|
||||
cout <<
|
||||
"SQL: \
|
||||
r = ::cplus_demangle_with_style(mname, 7, 27);
|
||||
|
||||
if (r != 0)
|
||||
{
|
||||
//cout << "mangle: " << mname << " demangle: " << r << endl;
|
||||
::free(r);
|
||||
}
|
||||
|
||||
if (typeid(*(n->data())) == typeid(SimpleFilter))
|
||||
{
|
||||
cout << "SimpleFilter: " << endl;
|
||||
const SimpleFilter* sf = dynamic_cast<SimpleFilter*>(n->data());
|
||||
const ReturnedColumn* lhs = sf->lhs();
|
||||
const ReturnedColumn* rhs = sf->rhs();
|
||||
const Operator* op = sf->op();
|
||||
cout << '\t' << lhs->data() << ' ' << op->data() << ' ' << rhs->data();
|
||||
cout << endl << "\t\t";
|
||||
|
||||
if (typeid(*lhs) == typeid(SimpleColumn))
|
||||
{
|
||||
cout << "SimpleColumn: " << lhs->data() << " / ";
|
||||
}
|
||||
else if (typeid(*lhs) == typeid(ConstantColumn))
|
||||
{
|
||||
cout << "ConstantColumn: " << lhs->data() << " / ";
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "UNK: " << lhs->data() << " / ";
|
||||
}
|
||||
|
||||
cout << "Operator: " << op->data() << " / ";
|
||||
|
||||
if (typeid(*rhs) == typeid(SimpleColumn))
|
||||
{
|
||||
cout << "SimpleColumn: " << rhs->data();
|
||||
}
|
||||
else if (typeid(*rhs) == typeid(ConstantColumn))
|
||||
{
|
||||
cout << "ConstantColumn: " << rhs->data();
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "UNK: " << rhs->data();
|
||||
}
|
||||
}
|
||||
else if (typeid(*(n->data())) == typeid(Operator))
|
||||
{
|
||||
cout << "Operator: ";
|
||||
const Operator* op = dynamic_cast<Operator*>(n->data());
|
||||
cout << '\t' << op->data();
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << mname << " -x-: ";
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
void setUp()
|
||||
{
|
||||
}
|
||||
|
||||
void tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
void selectExecutionPlan_16()
|
||||
{
|
||||
|
||||
cout <<
|
||||
"SQL: \
|
||||
select \
|
||||
p_brand, \
|
||||
p_type, \
|
||||
@ -163,215 +175,215 @@ order by \
|
||||
supplier_cnt desc, \
|
||||
p_brand, \
|
||||
p_type, \
|
||||
p_size;"
|
||||
<< endl;
|
||||
p_size;"
|
||||
<< endl;
|
||||
|
||||
/* ------------The create view statement is being re-written as an inline view ----- */
|
||||
/* ------------ (dynamic table) to be used in a from cluase. ----- */
|
||||
/* ------------The create view statement is being re-written as an inline view ----- */
|
||||
/* ------------ (dynamic table) to be used in a from cluase. ----- */
|
||||
|
||||
//This is the main query body for query 16
|
||||
CalpontSelectExecutionPlan* csep = new CalpontSelectExecutionPlan();
|
||||
|
||||
//This is the main query body for query 16
|
||||
CalpontSelectExecutionPlan *csep = new CalpontSelectExecutionPlan();
|
||||
|
||||
// Create the Projection (returned columns)
|
||||
CalpontSelectExecutionPlan::ReturnedColumnList colList;
|
||||
SimpleColumn *c1 = new SimpleColumn("tpch.part.p_brand");
|
||||
SimpleColumn* c1 = new SimpleColumn("tpch.part.p_brand");
|
||||
colList.push_back(c1);
|
||||
SimpleColumn *c2 = new SimpleColumn("tpch.part.p_type");
|
||||
SimpleColumn* c2 = new SimpleColumn("tpch.part.p_type");
|
||||
colList.push_back(c2);
|
||||
SimpleColumn *c3 = new SimpleColumn("tpch.part.p_size");
|
||||
SimpleColumn* c3 = new SimpleColumn("tpch.part.p_size");
|
||||
colList.push_back(c3);
|
||||
AggregateColumn *c4 = new AggregateColumn();
|
||||
AggregateColumn* c4 = new AggregateColumn();
|
||||
c4->functionName("count");
|
||||
c4->alias("supplier_cnt");
|
||||
ArithmeticColumn *a1 = new ArithmeticColumn("(distinct tpch.part.ps_suppkey)");
|
||||
ArithmeticColumn* a1 = new ArithmeticColumn("(distinct tpch.part.ps_suppkey)");
|
||||
c4->functionParms(a1);
|
||||
colList.push_back(c4);
|
||||
|
||||
|
||||
csep->returnedCols(colList); // set Projection columns
|
||||
|
||||
// Filter columns
|
||||
CalpontSelectExecutionPlan::FilterTokenList csep_filterlist;
|
||||
|
||||
SimpleFilter *f1 = new SimpleFilter ( new Operator("="),
|
||||
new SimpleColumn ("tpch.part.p_partkey"),
|
||||
new SimpleColumn ("tpch.partsupp.ps_partkey"));
|
||||
csep_filterlist.push_back(f1);
|
||||
CalpontSelectExecutionPlan::FilterTokenList csep_filterlist;
|
||||
|
||||
SimpleFilter* f1 = new SimpleFilter ( new Operator("="),
|
||||
new SimpleColumn ("tpch.part.p_partkey"),
|
||||
new SimpleColumn ("tpch.partsupp.ps_partkey"));
|
||||
csep_filterlist.push_back(f1);
|
||||
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
|
||||
SimpleFilter *f2 = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_brand"),
|
||||
new ConstantColumn(":1"));
|
||||
csep_filterlist.push_back(f2);
|
||||
SimpleFilter* f2 = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_brand"),
|
||||
new ConstantColumn(":1"));
|
||||
csep_filterlist.push_back(f2);
|
||||
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
|
||||
|
||||
//These next condition blocks where orginally written with ConditionFilter
|
||||
SimpleFilter *f3 = new SimpleFilter ( new Operator("not like"),
|
||||
new SimpleColumn ("tpch.part.p_type"),
|
||||
new ConstantColumn(":2"));
|
||||
csep_filterlist.push_back(f3);
|
||||
SimpleFilter* f3 = new SimpleFilter ( new Operator("not like"),
|
||||
new SimpleColumn ("tpch.part.p_type"),
|
||||
new ConstantColumn(":2"));
|
||||
csep_filterlist.push_back(f3);
|
||||
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
|
||||
csep_filterlist.push_back(new Operator("("));
|
||||
|
||||
SimpleFilter *f4a = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":3"));
|
||||
csep_filterlist.push_back(f4a);
|
||||
SimpleFilter* f4a = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":3"));
|
||||
csep_filterlist.push_back(f4a);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4b = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":4"));
|
||||
csep_filterlist.push_back(f4b);
|
||||
SimpleFilter* f4b = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":4"));
|
||||
csep_filterlist.push_back(f4b);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4c = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":5"));
|
||||
csep_filterlist.push_back(f4c);
|
||||
SimpleFilter* f4c = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":5"));
|
||||
csep_filterlist.push_back(f4c);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4d = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":6"));
|
||||
csep_filterlist.push_back(f4d);
|
||||
SimpleFilter* f4d = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":6"));
|
||||
csep_filterlist.push_back(f4d);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4e = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":7"));
|
||||
csep_filterlist.push_back(f4e);
|
||||
SimpleFilter* f4e = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":7"));
|
||||
csep_filterlist.push_back(f4e);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4f = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":8"));
|
||||
csep_filterlist.push_back(f4f);
|
||||
SimpleFilter* f4f = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":8"));
|
||||
csep_filterlist.push_back(f4f);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4g = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":9"));
|
||||
csep_filterlist.push_back(f4g);
|
||||
SimpleFilter* f4g = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":9"));
|
||||
csep_filterlist.push_back(f4g);
|
||||
|
||||
csep_filterlist.push_back(new Operator("or"));
|
||||
|
||||
SimpleFilter *f4h = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":10"));
|
||||
csep_filterlist.push_back(f4h);
|
||||
SimpleFilter* f4h = new SimpleFilter ( new Operator("<>"),
|
||||
new SimpleColumn ("tpch.part.p_size"),
|
||||
new ConstantColumn(":10"));
|
||||
csep_filterlist.push_back(f4h);
|
||||
|
||||
csep_filterlist.push_back(new Operator(")"));
|
||||
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
|
||||
/* --------------- sub select begins here ---------------- */
|
||||
//Sub select filter
|
||||
CalpontSelectExecutionPlan *subcsep =
|
||||
/* --------------- sub select begins here ---------------- */
|
||||
//Sub select filter
|
||||
CalpontSelectExecutionPlan* subcsep =
|
||||
new CalpontSelectExecutionPlan(CalpontSelectExecutionPlan::WHERE);
|
||||
|
||||
//subselect return column(s)
|
||||
CalpontSelectExecutionPlan::ReturnedColumnList subColList;
|
||||
CalpontSelectExecutionPlan::ReturnedColumnList subColList;
|
||||
|
||||
SimpleColumn *sc1 = new SimpleColumn ("tpch.supplier.s_suppkey");
|
||||
subColList.push_back(sc1);
|
||||
// Append returned columns to subselect
|
||||
subcsep->returnedCols(subColList);
|
||||
SimpleColumn* sc1 = new SimpleColumn ("tpch.supplier.s_suppkey");
|
||||
subColList.push_back(sc1);
|
||||
// Append returned columns to subselect
|
||||
subcsep->returnedCols(subColList);
|
||||
|
||||
//subselect Filters
|
||||
CalpontSelectExecutionPlan::FilterTokenList subcsep_filterlist;
|
||||
SimpleFilter *sf1 = new SimpleFilter ( new Operator("LIKE"),
|
||||
new SimpleColumn ("tpch.supplier.s_comment"),
|
||||
new ConstantColumn("%Customer%Complaints%"));
|
||||
subcsep_filterlist.push_back(sf1);
|
||||
//subselect Filters
|
||||
CalpontSelectExecutionPlan::FilterTokenList subcsep_filterlist;
|
||||
SimpleFilter* sf1 = new SimpleFilter ( new Operator("LIKE"),
|
||||
new SimpleColumn ("tpch.supplier.s_comment"),
|
||||
new ConstantColumn("%Customer%Complaints%"));
|
||||
subcsep_filterlist.push_back(sf1);
|
||||
|
||||
/* --------------- sub select begins here ---------------- */
|
||||
|
||||
//CalpontSelectExecutionPlan::FilterTokenList subFilterTokenList;
|
||||
SelectFilter *f5 = new SelectFilter (new SimpleColumn ("tpch.partsupp.ps_suppkey"),
|
||||
new Operator("not in"),
|
||||
subcsep);
|
||||
|
||||
csep_filterlist.push_back(f5);
|
||||
/*
|
||||
/* --------------- sub select begins here ---------------- */
|
||||
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
//CalpontSelectExecutionPlan::FilterTokenList subFilterTokenList;
|
||||
SelectFilter* f5 = new SelectFilter (new SimpleColumn ("tpch.partsupp.ps_suppkey"),
|
||||
new Operator("not in"),
|
||||
subcsep);
|
||||
|
||||
//ConditionFilter *f3 = new ConditionFilter ("p_brand not like ':2%'");
|
||||
ConditionFilter *f3 = new ConditionFilter ();
|
||||
f3->expression ("p_brand not like ':2%'");
|
||||
csep_filterlist.push_back(f3);
|
||||
csep_filterlist.push_back(f5);
|
||||
/*
|
||||
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
|
||||
//ConditionFilter *f4 = new ConditionFilter ("p_brand not in (:3, :4, :5, :6, :7, :8, :9, :10");
|
||||
ConditionFilter *f4 = new ConditionFilter ();
|
||||
f4->expression ("p_brand not in (:3, :4, :5, :6, :7, :8, :9, :10");
|
||||
csep_filterlist.push_back(f4);
|
||||
//ConditionFilter *f3 = new ConditionFilter ("p_brand not like ':2%'");
|
||||
ConditionFilter *f3 = new ConditionFilter ();
|
||||
f3->expression ("p_brand not like ':2%'");
|
||||
csep_filterlist.push_back(f3);
|
||||
|
||||
*/
|
||||
csep_filterlist.push_back(new Operator("and"));
|
||||
|
||||
//ConditionFilter *f4 = new ConditionFilter ("p_brand not in (:3, :4, :5, :6, :7, :8, :9, :10");
|
||||
ConditionFilter *f4 = new ConditionFilter ();
|
||||
f4->expression ("p_brand not in (:3, :4, :5, :6, :7, :8, :9, :10");
|
||||
csep_filterlist.push_back(f4);
|
||||
|
||||
*/
|
||||
csep->filterTokenList(csep_filterlist); //Set Filter Columns
|
||||
|
||||
|
||||
// Build Group By List
|
||||
// Build Group By List
|
||||
CalpontSelectExecutionPlan::GroupByColumnList csep_groupbyList;
|
||||
SimpleColumn *g1 = new SimpleColumn("tpch.part.p_brand");
|
||||
SimpleColumn* g1 = new SimpleColumn("tpch.part.p_brand");
|
||||
csep_groupbyList.push_back(g1);
|
||||
SimpleColumn *g2 = new SimpleColumn("tpch.part.p_type");
|
||||
SimpleColumn* g2 = new SimpleColumn("tpch.part.p_type");
|
||||
csep_groupbyList.push_back(g2);
|
||||
SimpleColumn *g3 = new SimpleColumn("tpch.part.p_size");
|
||||
SimpleColumn* g3 = new SimpleColumn("tpch.part.p_size");
|
||||
csep_groupbyList.push_back(g3);
|
||||
csep->groupByCols(csep_groupbyList); //Set GroupBy columns
|
||||
csep->groupByCols(csep_groupbyList); //Set GroupBy columns
|
||||
|
||||
// Order By List
|
||||
// Order By List
|
||||
CalpontSelectExecutionPlan::OrderByColumnList csep_orderbyList;
|
||||
SimpleColumn *o0 = new SimpleColumn("supplier_cnt"); // AggregateColumn has no asc/desc order
|
||||
SimpleColumn* o0 = new SimpleColumn("supplier_cnt"); // AggregateColumn has no asc/desc order
|
||||
o0->alias("supplier_cnt");
|
||||
o0->asc(false);
|
||||
csep_groupbyList.push_back(o0);
|
||||
SimpleColumn *o1 = new SimpleColumn("tpch.part.p_brand");
|
||||
SimpleColumn* o1 = new SimpleColumn("tpch.part.p_brand");
|
||||
csep_orderbyList.push_back(o1);
|
||||
SimpleColumn *o2 = new SimpleColumn("tpch.part.p_type");
|
||||
SimpleColumn* o2 = new SimpleColumn("tpch.part.p_type");
|
||||
csep_orderbyList.push_back(o2);
|
||||
SimpleColumn *o3 = new SimpleColumn("tpch.part.p_size");
|
||||
SimpleColumn* o3 = new SimpleColumn("tpch.part.p_size");
|
||||
csep_orderbyList.push_back(o3);
|
||||
csep->orderByCols(csep_orderbyList); //Set OrderBy columns
|
||||
|
||||
//filterList->walk(walkfnString); ??
|
||||
csep->orderByCols(csep_orderbyList); //Set OrderBy columns
|
||||
|
||||
// Print the parse tree
|
||||
ParseTree *pt = const_cast<ParseTree*>(csep->filters());
|
||||
//filterList->walk(walkfnString); ??
|
||||
|
||||
// Print the parse tree
|
||||
ParseTree* pt = const_cast<ParseTree*>(csep->filters());
|
||||
pt->drawTree("selectExecutionPlan_16.dot");
|
||||
|
||||
cout << "\nCalpont Execution Plan:" << endl;
|
||||
cout << *csep << endl;
|
||||
cout << " --- end of test 16 ---" << endl;
|
||||
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION( ExecPlanTest );
|
||||
|
||||
#include <cppunit/extensions/TestFactoryRegistry.h>
|
||||
#include <cppunit/ui/text/TestRunner.h>
|
||||
|
||||
int main( int argc, char **argv)
|
||||
int main( int argc, char** argv)
|
||||
{
|
||||
CppUnit::TextUi::TestRunner runner;
|
||||
CppUnit::TestFactoryRegistry ®istry = CppUnit::TestFactoryRegistry::getRegistry();
|
||||
runner.addTest( registry.makeTest() );
|
||||
bool wasSuccessful = runner.run( "", false );
|
||||
return (wasSuccessful ? 0 : 1);
|
||||
CppUnit::TextUi::TestRunner runner;
|
||||
CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
|
||||
runner.addTest( registry.makeTest() );
|
||||
bool wasSuccessful = runner.run( "", false );
|
||||
return (wasSuccessful ? 0 : 1);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user