Include excluded tests in coverage report, use xorg-dummy-driver (#1193)

This commit is contained in:
Bart Louwers
2023-06-07 16:24:16 +02:00
committed by GitHub
parent 288391cac2
commit 2f17d910b7
8 changed files with 80 additions and 22 deletions

View File

@@ -30,3 +30,8 @@ cc_library(
"//platform/default:mbgl-default",
],
)
sh_binary(
name = "startxwrapper",
srcs = ["xorg/startxwrapper"],
)

View File

@@ -0,0 +1,5 @@
# Xorg dummy driver
This directory contains an `xorg.conf` that uses the Xorg dummy driver.
It can be used as an alternative to `xvfb-run`.

View File

@@ -0,0 +1,8 @@
#!/usr/bin/bash
script=$(realpath "$0")
scriptpath=$(dirname "$script")
exit_code=$(mktemp)
XAUTHORITY=$(mktemp) startx "$PWD/$@ && echo $? > $exit_code" -- -xf86config "$scriptpath/xorg.conf" -logfile /dev/null
exit $(cat $exit_code)

View File

@@ -0,0 +1,35 @@
# This xorg.conf is used with the xserver-xorg-video-dummy driver in the workflows
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
# Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
# 1280x720 @ 60.00 Hz (GTF) hsync: 44.76 kHz; pclk: 74.48 MHz
# Modeline "1280x720_60.00" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
# Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
# 1600x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 119.00 MHz
# Modeline "1600x900_60.00" 119.00 1600 1696 1864 2128 900 901 904 932 -HSync +Vsync
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
Section "Device"
Identifier "Card0"
Option "NoDDC" "true"
Option "IgnoreEDID" "true"
Driver "dummy"
EndSection
Section "Screen"
DefaultDepth 16
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSectionSub "Display"
Depth 16
Modes "1920x1080"
EndSubSection
EndSection