Add render test to coverage report (#1192)
This commit is contained in:
@@ -12,6 +12,19 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "render-test-bin",
|
||||
srcs = [
|
||||
"src/mbgl/render-test/main.cpp",
|
||||
],
|
||||
visibility = [
|
||||
"//render-test:__pkg__",
|
||||
],
|
||||
deps = [
|
||||
"//render-test:render-test-lib",
|
||||
],
|
||||
)
|
||||
|
||||
# From: platform/ios/core-files.json
|
||||
# Mostly platform/default
|
||||
cc_library(
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <atomic>
|
||||
#include <functional>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
#include <unordered_map>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include <mbgl/util/timer.hpp>
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include <mbgl/util/run_loop.hpp>
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
script=$(realpath "$0")
|
||||
scriptpath=$(dirname "$script")
|
||||
|
||||
script=$(mktemp)
|
||||
exit_code=$(mktemp)
|
||||
XAUTHORITY=$(mktemp) startx "$PWD/$@ && echo $? > $exit_code" -- -xf86config "$scriptpath/xorg.conf" -logfile /dev/null
|
||||
echo "$PWD/$@ && echo \$? > $exit_code" > $script
|
||||
chmod +x $script
|
||||
|
||||
XAUTHORITY=$(mktemp) startx "$script" -- -xf86config "$scriptpath/xorg.conf" -logfile /dev/null
|
||||
exit $(cat $exit_code)
|
||||
Reference in New Issue
Block a user