Port to MetaContext

This ports over gnome-shell and the theme test case to MetaContext,
instead of the various functions that were available before.

The test case is changed to use the special test context, used to
construct contexts for testing. It's part of a shared libary separate
from the main libmutter one.

This enables building mutter tests during CI, as the test framework is
needed by some of gnome-shell's tests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1840>
This commit is contained in:
Jonas Ådahl 2021-05-06 23:17:40 +02:00 committed by Marge Bot
parent 4340170e94
commit 5acab6c300
5 changed files with 49 additions and 23 deletions

View file

@ -180,7 +180,7 @@ build:
needs: ["check_commit_log"]
before_script:
- .gitlab-ci/checkout-mutter.sh
- meson mutter mutter/build --prefix=/usr -Dtests=false
- meson mutter mutter/build --prefix=/usr
- ninja -C mutter/build install
script:
- meson . build -Dbuildtype=debugoptimized -Dman=false --werror