Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a66e545 authored by Cody Northrop's avatar Cody Northrop
Browse files

OpenGL: Update test mapping to include EGL_test

We need to get EGL tests running continuously in order
to make modifications to blobcache.

Skipping one failing test, will address or remove after
we get the test running.

Also add hasWideColorDisplay checks to two tests that
require Display P3 gamut.

Test: adb shell /data/nativetest64/EGL_test/EGL_test
Bug: b/120714942
Bug: b/246966894
Change-Id: I985f871900ab72553bcf0e73987b843800fcac89
parent 2fdbd6c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
  "presubmit": [
    {
      "name": "CtsGpuToolsHostTestCases"
    },
    {
      "name": "EGL_test"
    }
  ]
}
+1 −1
Original line number Diff line number Diff line

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
@@ -11,6 +10,7 @@ package {
cc_test {

    name: "EGL_test",
    test_suites: ["general-tests"],

    srcs: [
        "egl_cache_test.cpp",
+17 −0
Original line number Diff line number Diff line
@@ -343,6 +343,11 @@ TEST_F(EGLTest, EGLDisplayP3Passthrough) {
}

TEST_F(EGLTest, EGLDisplayP31010102) {
    // This test has been failing since:
    // libEGL: When driver doesn't understand P3, map sRGB-encoded P3 to sRGB
    // https://android-review.git.corp.google.com/c/platform/frameworks/native/+/793504
    GTEST_SKIP() << "Skipping broken test. See b/120714942 and b/117104367";

    EGLint numConfigs;
    EGLConfig config;
    EGLBoolean success;
@@ -866,6 +871,12 @@ TEST_F(EGLTest, EGLUnsupportedColorspaceFormatCombo) {
    EGLConfig config;
    EGLBoolean success;

    if (!hasWideColorDisplay) {
        // skip this test if device does not have wide-color display
        RecordProperty("hasWideColorDisplay", false);
        return;
    }

    const EGLint attrs[] = {
            // clang-format off
            EGL_SURFACE_TYPE,             EGL_WINDOW_BIT,
@@ -951,6 +962,12 @@ TEST_F(EGLTest, EGLCreateWindowFailAndSucceed) {
TEST_F(EGLTest, EGLCreateWindowTwoColorspaces) {
    EGLConfig config;

    if (!hasWideColorDisplay) {
        // skip this test if device does not have wide-color display
        RecordProperty("hasWideColorDisplay", false);
        return;
    }

    ASSERT_NO_FATAL_FAILURE(get8BitConfig(config));

    struct MockConsumer : public BnConsumerListener {