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.
This commit is contained in:
Jesse Beder
2024-12-17 09:46:59 -06:00
committed by Jesse Beder
parent 1da813f56a
commit 7def2046ff
5 changed files with 145 additions and 13 deletions

View File

@@ -1,14 +1,28 @@
package(default_visibility = ["//test:__subpackages__"])
cc_library(
name = "mock_event_handler",
hdrs = ["mock_event_handler.h"],
strip_include_prefix = "//test",
)
cc_library(
name = "specexamples",
hdrs = ["specexamples.h"],
strip_include_prefix = "//test",
)
cc_test(
name = "test",
srcs = glob([
"*.cpp",
"*.h",
"integrations/*.cpp",
"node/*.cpp",
]),
deps = [
":mock_event_handler",
":specexamples",
"//:yaml-cpp",
"//:yaml-cpp_internal",
"@com_google_googletest//:gtest_main",
"@googletest//:gtest_main",
],
)

View File

@@ -0,0 +1,14 @@
cc_test(
name = "test",
srcs = glob([
"*.cpp",
"*.h",
]),
deps = [
"//:yaml-cpp",
"//:yaml-cpp_internal",
"//test:mock_event_handler",
"//test:specexamples",
"@googletest//:gtest_main",
],
)