Add render test to coverage report (#1192)

This commit is contained in:
Bart Louwers
2023-06-07 22:50:51 +02:00
committed by GitHub
parent 2e2a3c8bd2
commit 3260d32bb0
12 changed files with 113 additions and 3 deletions

43
render-test/BUILD.bazel Normal file
View File

@@ -0,0 +1,43 @@
load("//bazel:flags.bzl", "CPP_FLAGS", "MAPLIBRE_FLAGS")
cc_library(
name = "render-test-lib",
hdrs = [
"include/mbgl/render_test.hpp",
],
includes = [
"include",
],
visibility = [
"//platform/default:__pkg__",
],
)
cc_test(
name = "render-test",
srcs = glob(
[
"*.cpp",
"*.hpp",
],
) + [
"include/mbgl/render_test.hpp",
],
args = [
"--manifestPath",
"metrics/linux-gcc8-release-style.json",
],
copts = CPP_FLAGS + MAPLIBRE_FLAGS,
data = [
"//metrics:render-test-files",
],
includes = [
"include",
],
deps = [
"//expression-test:test_runner_common",
"//platform/default:render-test-bin",
"//platform/linux:impl",
"//vendor:mapbox-base",
],
)

View File

@@ -46,6 +46,12 @@ target_include_directories(
PUBLIC ${PROJECT_SOURCE_DIR}/render-test/include ${PROJECT_SOURCE_DIR}/include
)
# needed for test_runner_common.hpp
target_include_directories(
mbgl-render-test
PRIVATE ${PROJECT_SOURCE_DIR}/expression-test
)
include(${PROJECT_SOURCE_DIR}/vendor/boost.cmake)
target_link_libraries(

View File

@@ -18,7 +18,7 @@
#include <mapbox/pixelmatch.hpp>
#include <../expression-test/test_runner_common.hpp>
#include "test_runner_common.hpp"
#include "allocation_index.hpp"
#include "file_source.hpp"
#include "metadata.hpp"