Changeset 31c91db0 for x


Ignore:
Timestamp:
09/14/2024 09:01:29 AM (6 days ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
d4a3f02
Parents:
f73357b4
git-author:
Xi Ruoyao <xry111@…> (09/14/2024 09:01:00 AM)
git-committer:
Xi Ruoyao <xry111@…> (09/14/2024 09:01:29 AM)
Message:

gtk4: Attempt to get a cleaner test result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/gtk4.xml

    rf73357b4 r31c91db0  
    101101    <bridgehead renderas="sect4">Optional</bridgehead>
    102102    <para role="optional">
     103      <xref linkend="avahi"/> (for some tests),
    103104      <xref linkend="colord"/>,
    104105      <xref linkend="cups"/>,
     
    111112      <xref linkend="sassc"/>,
    112113      <xref linkend="tracker3"/>,
    113       <ulink url="https://github.com/OpenPrinting/cpdb-libs">cpdb</ulink>, and
     114      <ulink url="https://github.com/OpenPrinting/cpdb-libs">cpdb</ulink>
     115      <ulink url="https://pypi.org/project/pydbus/">pydbus</ulink>
     116      (for some tests), and
    114117      <ulink url="&sysprof-url;">sysprof</ulink>
    115118    </para>
     
    146149
    147150    <para>
    148       To run the tests, issue: <command>dbus-run-session meson test --setup
    149       x11</command>. If you are in a Wayland session, replace x11 with wayland.
     151      To run the tests, issue:
     152    </para>
     153
     154    <screen remap='test'><userinput>LIBGL_ALWAYS_SOFTWARE=1 \
     155dbus-run-session meson test --setup x11 --no-suite needs-dmabuf
     1569</userinput></screen>
     157
     158    <para>
     159      If you are in a Wayland session, replace the two occurences of
     160      <literal>x11</literal> with <literal>wayland</literal>.
    150161     
    151       Nine tests are known to fail if
     162      One test is known to fail if
    152163      <ulink url="https://gitlab.gnome.org/GNOME/cantarell-fonts">Cantrell fonts</ulink>
    153       are not installed.
     164      are not installed.
     165
     166      About a dozen of tests are known to fail with minor (mostly invisible)
     167      differences between the render output and the shipped reference image.
     168      Issue
     169      <command>grep 'not ok' meson-logs/testlog-x11.txt -B3</command>
     170      (use <filename>testlog-wayland.txt</filename> if testing in a Wayland
     171      session) to list them and the image files showing the render output,
     172      the reference output, and the differences.  You may take a look at
     173      those images to ensure the differences are insignificant.
     174
     175      Two <literal>headless</literal> tests are known to fail without the
     176      external dependency pydbus installed.
    154177     
    155178      Many tests will fail if <filename>~/.config/gtk-4.0/settings.ini</filename>
    156179      exists and the gtk-modules line is not commented out.
     180
     181      Several other tests may fail for unknown reason.
    157182     
    158183      On systems with NVIDIA graphics cards, the tests may take significantly
    159184      longer than the above test time.
    160 
     185      <!--
    161186      On some systems as many as 212 tests may fail (out of over 6100) for
    162187      unknown reasons.
     188
     189      I hope this is gone with LIBGL_ALWAYS_SOFTWARE and -\-no-suite dmabuf.
     190      If not please restore them.  - xry111
     191      -->
    163192    </para>
    164193<!-- [pierre]: 4.6.0, wayland:   727 OK; 2 Expected Fail;   1 Fail; 1  Skipped
     
    190219     [bdubbs]: 4.16.0, x11,     5896 OK, 0 Expected Fail, 212 Fail, 16 Skipped, 0 Timeout
    191220               above on X11 in XFCE.  Over ssh there were 24 Timeouts
     221     [xry111]: 4.16.1, x11,     6121 OK, 0 Expected Fail, 14 Fail, 16 Skipped, 0 Timeout
     222               above on X11 (Xwayland) in GNOME
     223     [xry111]: 4.16.1, wayland, 6120 OK, 0 Expected Fail, 15 Fail, 16 Skipped, 0 Timeout
     224               above on wayland in GNOME
     225     [xry111]: 4.16.1, x11,     6119 OK, 0 Expected Fail, 16 Fail, 16 Skipped, 0 Timeout
     226               above on X11 (Xwayland) in Weston
     227     [xry111]: 4.16.1, x11,     6106 OK, 0 Expected Fail, 18 Fail, 25 Skipped, 2 Timeout
     228               above on wayland in Weston
    192229-->
    193230
     
    254291    </para>
    255292
     293    <para>
     294      <envar>LIBGL_ALWAYS_SOFTWARE=1</envar>: Force the test suite to use
     295      the softpipe or llvmpipe driver from Mesa.  The test suite is so
     296      sensitive that the minor differences caused by a different Mesa
     297      driver can trigger test failures.
     298    </para>
     299
     300    <para>
     301      <parameter>--no-suite dmabuf</parameter>: Disable the tests requiring
     302      <filename class='devicefile'>/dev/udmabuf</filename>.  This file does
     303      not exist if the feature is not enabled in the kernel configuration,
     304      and even if it exists it cannot be accessed as unprivileged users.
     305    </para>
    256306  </sect2>
    257307
Note: See TracChangeset for help on using the changeset viewer.