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

Commit ca473b2e authored by Cody Northrop's avatar Cody Northrop Committed by Android (Google) Code Review
Browse files

Merge "OpenGL: Update test mapping to include EGL_test"

parents 67244df9 2a66e545
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 {