mutter/.gitlab-ci/run-tests.sh
Marco Trevisan (Treviño) 58fb865a7c build: Add CI test setup to run tests as the CI would do
This allows to just use meson test _build --setup=CI to run tests with
the same environment of CI, plus allows to handle wrappers better for
debugging purposes.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1233>
2021-09-04 10:01:29 +02:00

21 lines
374 B
Bash
Executable File

#!/usr/bin/bash
set -e
dconf update
glib-compile-schemas $GSETTINGS_SCHEMA_DIR
# Disable e.g. audio support to not dead lock screen cast tests
rm -f /usr/share/pipewire/media-session.d/with-*
PIPEWIRE_DEBUG=2 PIPEWIRE_LOG="$CI_PROJECT_DIR/build/meson-logs/pipewire.log" \
pipewire &
sleep 2
meson test -C build --no-rebuild --setup CI
exit_code=$?
exit $exit_code