mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
3d2d5cd334
With the surfaceless mode in the headless backend, it's now possible to initiate the headless mode without any mode setting devices, or render nodes, without any special CI runner privileges. The native backend tests include screen cast tests, so make them possible to run by starting pipewire. Testing shows that enabling audio support (pulseaudio & jack compat layers) makes the tests dead lock and eventually timeout, so disable those features for now. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
29 lines
648 B
Bash
Executable File
29 lines
648 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
set -e
|
|
|
|
dconf update
|
|
glib-compile-schemas $GSETTINGS_SCHEMA_DIR
|
|
|
|
# Disable audio support to not dead lock screen cast tests
|
|
rm -f /etc/pipewire/media-session.d/with-jack
|
|
rm -f /etc/pipewire/media-session.d/with-pulseaudio
|
|
pipewire &
|
|
|
|
sleep 2
|
|
|
|
export MUTTER_DEBUG_DUMMY_MODE_SPECS="800x600@10.0"
|
|
|
|
xvfb-run -s '+iglx -noreset' \
|
|
meson test -C build --no-rebuild -t 10 --wrap catchsegv
|
|
|
|
exit_code=$?
|
|
|
|
python3 .gitlab-ci/meson-junit-report.py \
|
|
--project-name=mutter \
|
|
--job-id "${CI_JOB_NAME}" \
|
|
--output "build/${CI_JOB_NAME}-report.xml" \
|
|
build/meson-logs/testlog-catchsegv.json
|
|
|
|
exit $exit_code
|