Commit cce24e9c by Jamie Madill

dEQP-GLES2: Reland of "Skip flush/finish test on Windows."

This test is having flaky timeouts on the bots. Disable it for now. The re-land fixes the test syntax, and ensures we will see any errors in test config as test failures on the bots. BUG=angleproject:1107 TEST=angle_deqp_gles2_tests runs Change-Id: Ia4fa8affb70e4474d8e43ff87ee86328aa47ebeb Reviewed-on: https://chromium-review.googlesource.com/289580Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 79d059f8
...@@ -54,14 +54,18 @@ class dEQPCaseList ...@@ -54,14 +54,18 @@ class dEQPCaseList
int mExpectation; int mExpectation;
}; };
void initialize();
const CaseInfo &getCaseInfo(size_t caseIndex) const const CaseInfo &getCaseInfo(size_t caseIndex) const
{ {
ASSERT(mInitialized);
ASSERT(caseIndex < mCaseInfoList.size()); ASSERT(caseIndex < mCaseInfoList.size());
return mCaseInfoList[caseIndex]; return mCaseInfoList[caseIndex];
} }
size_t numCases() const size_t numCases() const
{ {
ASSERT(mInitialized);
return mCaseInfoList.size(); return mCaseInfoList.size();
} }
...@@ -69,35 +73,50 @@ class dEQPCaseList ...@@ -69,35 +73,50 @@ class dEQPCaseList
std::vector<CaseInfo> mCaseInfoList; std::vector<CaseInfo> mCaseInfoList;
gpu::GPUTestExpectationsParser mTestExpectationsParser; gpu::GPUTestExpectationsParser mTestExpectationsParser;
gpu::GPUTestBotConfig mTestConfig; gpu::GPUTestBotConfig mTestConfig;
size_t mTestModuleIndex;
bool mInitialized;
}; };
dEQPCaseList::dEQPCaseList(size_t testModuleIndex) dEQPCaseList::dEQPCaseList(size_t testModuleIndex)
: mTestModuleIndex(testModuleIndex),
mInitialized(false)
{
}
void dEQPCaseList::initialize()
{ {
if (mInitialized)
{
return;
}
mInitialized = true;
std::string exeDir = angle::GetExecutableDirectory(); std::string exeDir = angle::GetExecutableDirectory();
std::stringstream caseListPathStr; std::stringstream caseListPathStr;
caseListPathStr << exeDir << "/deqp_support/" << g_CaseListFiles[testModuleIndex]; caseListPathStr << exeDir << "/deqp_support/" << g_CaseListFiles[mTestModuleIndex];
std::string caseListPath = caseListPathStr.str(); std::string caseListPath = caseListPathStr.str();
std::stringstream testExpectationsPathStr; std::stringstream testExpectationsPathStr;
testExpectationsPathStr << exeDir << "/deqp_support/" testExpectationsPathStr << exeDir << "/deqp_support/"
<< g_TestExpectationsFiles[testModuleIndex]; << g_TestExpectationsFiles[mTestModuleIndex];
std::string testExpectationsPath = testExpectationsPathStr.str(); std::string testExpectationsPath = testExpectationsPathStr.str();
if (!mTestExpectationsParser.LoadTestExpectationsFromFile(testExpectationsPath)) if (!mTestExpectationsParser.LoadTestExpectationsFromFile(testExpectationsPath))
{ {
std::cerr << "Failed to load test expectations." << std::endl; std::stringstream errorMsgStream;
for (const auto &message : mTestExpectationsParser.GetErrorMessages()) for (const auto &message : mTestExpectationsParser.GetErrorMessages())
{ {
std::cerr << " " << message << std::endl; errorMsgStream << std::endl << " " << message;
} }
return;
FAIL() << "Failed to load test expectations." << errorMsgStream.str();
} }
if (!mTestConfig.LoadCurrentConfig(nullptr)) if (!mTestConfig.LoadCurrentConfig(nullptr))
{ {
std::cerr << "Failed to load test configuration." << std::endl; FAIL() << "Failed to load test configuration.";
return;
} }
std::stringstream caseListStream; std::stringstream caseListStream;
...@@ -107,7 +126,7 @@ dEQPCaseList::dEQPCaseList(size_t testModuleIndex) ...@@ -107,7 +126,7 @@ dEQPCaseList::dEQPCaseList(size_t testModuleIndex)
if (fi == nullptr) if (fi == nullptr)
{ {
return; FAIL() << "Failed to read gzipped test information.";
} }
gzrewind(fi); gzrewind(fi);
...@@ -154,6 +173,7 @@ class dEQPTest : public testing::TestWithParam<size_t> ...@@ -154,6 +173,7 @@ class dEQPTest : public testing::TestWithParam<size_t>
static const dEQPCaseList &GetCaseList() static const dEQPCaseList &GetCaseList()
{ {
static dEQPCaseList sCaseList(TestModuleIndex); static dEQPCaseList sCaseList(TestModuleIndex);
sCaseList.initialize();
return sCaseList; return sCaseList;
} }
......
...@@ -568,7 +568,9 @@ ...@@ -568,7 +568,9 @@
1032 WIN LINUX : dEQP-GLES2.functional.state_query.shader.program_attached_shaders = FAIL 1032 WIN LINUX : dEQP-GLES2.functional.state_query.shader.program_attached_shaders = FAIL
1034 WIN LINUX : dEQP-GLES2.functional.flush_finish.flush = FAIL 1034 WIN LINUX : dEQP-GLES2.functional.flush_finish.flush = FAIL
1034 WIN LINUX : dEQP-GLES2.functional.flush_finish.finish = FAIL 1034 WIN LINUX : dEQP-GLES2.functional.flush_finish.finish = FAIL
1034 WIN LINUX : dEQP-GLES2.functional.flush_finish.finish_wait = FAIL
// Skip this test on Windows due to timeouts
1034 WIN LINUX : dEQP-GLES2.functional.flush_finish.finish_wait = SKIP
// Don't run these tests for faster turnover // Don't run these tests for faster turnover
998 WIN LINUX : dEQP-GLES2.performance.* = SKIP 998 WIN LINUX : dEQP-GLES2.performance.* = SKIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment