Skip to content

Commit 8d0e2d0

Browse files
committed
odb: Add TestAccessPoint to the bazel build
A template example for a boost unit test Signed-off-by: Matt Liberty <[email protected]>
1 parent 5fc6951 commit 8d0e2d0

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ bazel_dep(name = "boost.smart_ptr", version = BOOST_VERSION)
7979
bazel_dep(name = "boost.spirit", version = BOOST_VERSION)
8080
bazel_dep(name = "boost.stacktrace", version = BOOST_VERSION)
8181
bazel_dep(name = "boost.system", version = BOOST_VERSION)
82+
bazel_dep(name = "boost.test", version = BOOST_VERSION + ".bcr.1")
8283
bazel_dep(name = "boost.thread", version = BOOST_VERSION + ".bcr.2")
8384
bazel_dep(name = "boost.tokenizer", version = BOOST_VERSION)
8485
bazel_dep(name = "boost.unordered", version = BOOST_VERSION)

MODULE.bazel.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/odb/test/cpp/BUILD

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,17 @@ cc_test(
6565
],
6666
)
6767

68+
cc_test(
69+
name = "TestAccessPoint",
70+
srcs = [
71+
"TestAccessPoint.cpp",
72+
],
73+
linkstatic = True, # TODO: remove once deps define all symbols
74+
deps = [
75+
"//src/odb",
76+
"//src/odb/test/cpp/helper",
77+
"@boost.test",
78+
],
79+
)
80+
6881
# TODO: more to come.

0 commit comments

Comments
 (0)