Skip to content

Commit

Permalink
Fix bazel build, and commit module lock file.
Browse files Browse the repository at this point in the history
Including:
- The integration tests were not included since the directory was misspelled.
- Their header files were not accessible.
  • Loading branch information
jbeder committed Dec 17, 2024
1 parent 1da813f commit 8391aa2
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 2 deletions.
114 changes: 114 additions & 0 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
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",
Expand Down
14 changes: 14 additions & 0 deletions test/integration/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cc_test(
name = "test",
srcs = glob([
"*.cpp",
"*.h",
]),
deps = [
"//:yaml-cpp",
"//:yaml-cpp_internal",
"//test:mock_event_handler",
"//test:specexamples",
"@com_google_googletest//:gtest_main",
],
)
File renamed without changes.

0 comments on commit 8391aa2

Please sign in to comment.