//--------------------------------------------------------------------------- // @function: // CMDAccessorTest::EresUnittest // // @doc: // // //--------------------------------------------------------------------------- GPOS_RESULT CMDAccessorTest::EresUnittest() { CUnittest rgut[] = { GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_Basic), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_Datum), #ifdef GPOS_DEBUG GPOS_UNITTEST_FUNC_ASSERT(CMDAccessorTest::EresUnittest_DatumGeneric), #endif GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_Navigate), GPOS_UNITTEST_FUNC_THROW ( CMDAccessorTest::EresUnittest_Negative, gpdxl::ExmaMD, gpdxl::ExmiMDCacheEntryNotFound ), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_Indexes), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_CheckConstraint), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_IndexPartConstraint), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_Cast), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_ScCmp), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_ConcurrentAccessSingleMDA), GPOS_UNITTEST_FUNC(CMDAccessorTest::EresUnittest_ConcurrentAccessMultipleMDA) }; return CUnittest::EresExecute(rgut, GPOS_ARRAY_SIZE(rgut)); }
//--------------------------------------------------------------------------- // @function: // CParseHandlerTest::EresUnittest // // @doc: // Unittest for DXL parsing // //--------------------------------------------------------------------------- GPOS_RESULT CParseHandlerTest::EresUnittest() { CUnittest rgut[] = { GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_ScalarExpr), GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_Statistics), GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_Metadata), GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_MDRequest), GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_RunPlanTests), // tests involving dxl representation of queries. GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_RunQueryTests), // test that throw XML validation exception GPOS_UNITTEST_FUNC_THROW ( CParseHandlerTest::EresUnittest_ErrSAXParseException, gpdxl::ExmaDXL, gpdxl::ExmiDXLValidationError ), // tests that should throw an exception GPOS_UNITTEST_FUNC(CParseHandlerTest::EresUnittest_RunAllNegativeTests), }; // skip OOM and Abort simulation for this test, it takes hours if (ITask::PtskSelf()->FTrace(EtraceSimulateOOM) || ITask::PtskSelf()->FTrace(EtraceSimulateAbort)) { return GPOS_OK; } return CUnittest::EresExecute(rgut, GPOS_ARRAY_SIZE(rgut)); }