Skip to content

Commit 7def204

Browse files
committed
Fix bazel build, and commit module lock file.
Including: - Remove WORKSPACE and upgrade to MODULE.bazel. - The integration tests were not included since the directory was misspelled. - Their header files were not accessible.
1 parent 1da813f commit 7def204

File tree

5 files changed

+145
-13
lines changed

5 files changed

+145
-13
lines changed

MODULE.bazel.lock

+114
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WORKSPACE

-10
This file was deleted.

test/BUILD.bazel

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1+
package(default_visibility = ["//test:__subpackages__"])
2+
3+
cc_library(
4+
name = "mock_event_handler",
5+
hdrs = ["mock_event_handler.h"],
6+
strip_include_prefix = "//test",
7+
)
8+
9+
cc_library(
10+
name = "specexamples",
11+
hdrs = ["specexamples.h"],
12+
strip_include_prefix = "//test",
13+
)
14+
115
cc_test(
216
name = "test",
317
srcs = glob([
418
"*.cpp",
5-
"*.h",
6-
"integrations/*.cpp",
719
"node/*.cpp",
820
]),
921
deps = [
22+
":mock_event_handler",
23+
":specexamples",
1024
"//:yaml-cpp",
1125
"//:yaml-cpp_internal",
12-
"@com_google_googletest//:gtest_main",
26+
"@googletest//:gtest_main",
1327
],
1428
)

test/integration/BUILD.bazel

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cc_test(
2+
name = "test",
3+
srcs = glob([
4+
"*.cpp",
5+
"*.h",
6+
]),
7+
deps = [
8+
"//:yaml-cpp",
9+
"//:yaml-cpp_internal",
10+
"//test:mock_event_handler",
11+
"//test:specexamples",
12+
"@googletest//:gtest_main",
13+
],
14+
)
File renamed without changes.

0 commit comments

Comments
 (0)