Commit 0742c8c9 by Geoff Lang Committed by Commit Bot

Pass the --deqp-egl-display-type= flag to dEQP tests.

BUG=angleproject:1442 Change-Id: I49299d2345f67b7ed3e2c80db0ec85589fc7583c Reviewed-on: https://chromium-review.googlesource.com/415526Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 5e2e145d
......@@ -55,6 +55,9 @@ const APIInfo g_eglDisplayAPIs[] = {
{"angle-null", gpu::GPUTestConfig::kAPIUnknown },
};
const char *g_deqpEGLString = "--deqp-egl-display-type=";
const char *g_angleEGLString = "--use-angle=";
const APIInfo *g_initAPI = nullptr;
// Returns the default API for a platform.
......@@ -318,19 +321,18 @@ void dEQPTest<TestModuleIndex>::SetUpTestCase()
sFails = 0;
sUnexpectedPasses = 0;
int argc = 0;
std::vector<const char *> argv;
// Reserve one argument for the binary name.
argc++;
argv.push_back("");
// Add init api.
argc++;
argv.push_back(g_initAPI ? g_initAPI->first : GetDefaultAPIName());
const char *targetApi = g_initAPI ? g_initAPI->first : GetDefaultAPIName();
std::string apiArgString = std::string(g_deqpEGLString) + targetApi;
argv.push_back(apiArgString.c_str());
// Init the platform.
if (!deqp_libtester_init_platform(argc, argv.data()))
if (!deqp_libtester_init_platform(static_cast<int>(argv.size()), argv.data()))
{
std::cout << "Aborting test due to dEQP initialization error." << std::endl;
exit(1);
......@@ -386,9 +388,6 @@ ANGLE_INSTANTIATE_DEQP_TEST_CASE(dEQP_GLES31, 2);
ANGLE_INSTANTIATE_DEQP_TEST_CASE(dEQP_EGL, 3);
#endif
const char *g_deqpEGLString = "--deqp-egl-display-type=";
const char *g_angleEGLString = "--use-angle=";
void HandleDisplayType(const char *displayTypeString)
{
std::stringstream argStream;
......
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