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:
- Remove WORKSPACE and upgrade to MODULE.bazel.
- 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 7def204
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 13 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.

10 changes: 0 additions & 10 deletions WORKSPACE

This file was deleted.

20 changes: 17 additions & 3 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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",
],
)
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",
"@googletest//:gtest_main",
],
)
File renamed without changes.

0 comments on commit 7def204

Please sign in to comment.