<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK][Wayland] Allow running the layout tests under a native Wayland environment."
   href="https://bugs.webkit.org/show_bug.cgi?id=165232">165232</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK][Wayland] Allow running the layout tests under a native Wayland environment.
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>clopez&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lforschler&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GTK][Wayland] Implement support for running the layout tests under a (virtualized) Wayland environment."
   href="show_bug.cgi?id=156716">bug 156716</a> we implemented support for running the layout tests under a virtualized wayland environment (weston running on top of Xvfb).

We now want to allow running the tests in a native wayland environment (the user's wayland session). 

This feature is going to be used on the wayland test bot that we are going to deploy ASAP. We think running the tests on wayland with a hardware-backed OpenGL implementation makes more sense than use mesa's llvmpipe software rasterizer.

For Xorg, we do this by exporting the environment variable USE_NATIVE_XDISPLAY=1

I propose to do something similar here.

So:

* if you pass the flag --wayland to run-webkit-tests a wayland (virtualized) environment will be used
* if you pass the flag --wayland and also export USE_NATIVE_WAYLAND=1 then your native wayland environment will be used

I think this is consistent with the current behaviour for X11:

* if you don't pass any special flag, the default X11 (virtualized xvfb) will be used
* if you don't pass any special flag and you export USE_NATIVE_XDISPLAY=1 env var, then your native X11 session will be used.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>