Changeset 460609c


Ignore:
Timestamp:
06/10/2023 11:18:15 AM (12 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
d37d7c5
Parents:
2980344
git-author:
Xi Ruoyao <xry111@…> (06/10/2023 10:59:31 AM)
git-committer:
Xi Ruoyao <xry111@…> (06/10/2023 11:18:15 AM)
Message:

mutter: Reword test instruction

  • Clutter tests do not work well with buildtype=release, so disable them
  • Use gtk4-demo instead of gtk3-demo as mutter is now a GTK4 application
  • Also remove "GTK3 needs to be built with Wayland" (GTK4 always requires wayland)
  • Document a known failure
  • Add libmutter-test-12 (optional) into short description
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gnome/platform/mutter.xml

    r2980344 r460609c  
    101101      <xref linkend="wayland-protocols"/>, and
    102102      <xref linkend="xwayland"/>.
    103       Additionally, <xref linkend="gtk3"/> needs to be built with
    104       <application>Wayland</application> support.
    105103    </para>
    106104
     
    117115    </para>
    118116
    119     <!-- NOTE: Mutter compiles git versions of COGL and Clutter for it's own
    120     internal use. This is because the wayland support upstream isn't advanced
    121     enough for the graphics stack used in Mutter. -->
     117    <!-- NOTE: Mutter compiles shipped Cogl and Clutter for it's own
     118    internal use. This is because the upstream has decided that Cogl and
     119    Clutter should be only used by Mutter in the future, so the development
     120    of Cogl and Clutter is now performed in the Mutter repository.  The
     121    "standalone" Cogl and Clutter are considered obsolete now and we should
     122    try to archive them.  -->
    122123
    123124    <para condition="html" role="usernotes">User Notes:
     
    164165
    165166    <para>
    166       The test suite requires debug functions to be enabled in the build, and an
     167      The test suite requires an
    167168      external program called <command>xvfb-run</command>.  If you wish to run
    168169      the tests, you should download and install it before running
     
    179180      You should also replace <parameter>-Dtests=false</parameter> in the
    180181      <command>meson</command> command, with
    181       <parameter>-Dtests=true</parameter>.  The test
     182      <parameter>-Dtests=true -Dclutter_tests=false</parameter>.  The test
    182183      suite requires the mutter schema to be installed on the system, so it is
    183184      better to run the tests after installing the package.
     
    201202    </para>
    202203
    203 <screen role='test'><userinput>sed 's/zenity --[a-z]*/gtk3-demo/' -i ../src/tests/x11-test.sh</userinput></screen>
     204<screen role='test'><userinput>sed 's/zenity --[a-z]*/gtk4-demo/' -i ../src/tests/x11-test.sh</userinput></screen>
    204205
    205206    <para>
     
    213214    <para>
    214215      The tests require an active X or wayland session.
    215       The <filename>native-unit</filename> test is known to fail.
     216      <!-- https://gitlab.gnome.org/GNOME/mutter/-/issues/2848 -->
     217      The <filename>test_framebuffer_get_bits</filename> test is known to fail.
    216218      A lot of tests will fail if the opengl rendering is not done in hardware.
    217219      Don't make any mouse or keyboard input while the test suite is
    218220      running or some tests may fail.
    219221    </para>
     222
    220223  </sect2>
    221224
    222225  <sect2 role="commands">
    223226    <title>Command Explanations</title>
    224 
    225     <!-- https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5512
    226          If debug is disabled, the "assertion 'CLUTTER_IS_ACTOR (self)'
    227          failed" message will turn into a crash.  Enabling debug is just a
    228          work around, it's not a proper fix.
    229     <para>
    230       <parameter>- -buildtype=debugoptimized</parameter>: Override the
    231       default buildtype (<quote>debug</quote>), which would produce
    232       unoptimized binaries.  It's used instead of
    233       <option>- -buildtype=release</option> to work around an issue
    234       causing gnome-shell to crash.
    235     </para>
    236     -->
    237227
    238228    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    251241    </para>
    252242
     243    <para>
     244      <option>-Dtests=true -Dclutter-tests=false</option>: Building all the
     245      tests but the tests for the shipped <application>Clutter</application>
     246      library.  The <application>Clutter</application> tests are known to
     247      fail with <option>--buildtype=release</option>.
     248    </para>
     249
    253250  </sect2>
    254251
     
    256253    <title>Starting Mutter</title>
    257254
    258     <!-- Mutter as a Wayland compositor Works with mutter-42.4 and 43.0.
     255    <!-- Mutter as a Wayland compositor works with recent mutter releases.
    259256         IIRC mutter can also be used as a X window manager: just replace
    260257         "twm" with "mutter &dash;&dash;x11" in xinitrc. But I've not tested
     
    304301        </seg>
    305302        <seg>
    306           libmutter-12.so
     303          libmutter-12.so and libmutter-test-12.so (optional)
    307304        </seg>
    308305        <seg>
     
    342339      </varlistentry>
    343340
     341      <varlistentry id="libmutter-test">
     342        <term><filename class="libraryfile">libmutter-test-12.so</filename></term>
     343        <listitem>
     344          <para>
     345            contains the <application>Mutter</application> test suite API
     346            functions; this library is only installed if the test suite of
     347            this package is enabled and it is needed by
     348            <application>gnome-shell</application> test suite
     349          </para>
     350          <indexterm zone="mutter libmutter-test">
     351            <primary sortas="c-libmutter-test">libmutter-test-12.so</primary>
     352          </indexterm>
     353        </listitem>
     354      </varlistentry>
     355
    344356    </variablelist>
    345357
Note: See TracChangeset for help on using the changeset viewer.