Add render test to coverage report (#1192)
This commit is contained in:
43
render-test/BUILD.bazel
Normal file
43
render-test/BUILD.bazel
Normal 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",
|
||||
],
|
||||
)
|
||||
@@ -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(
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user