Skip to content

Commit

Permalink
[eclipse-iceoryx#476] Enable testing feature for test_suite only in b…
Browse files Browse the repository at this point in the history
…azel
  • Loading branch information
xieyuschen committed Oct 24, 2024
1 parent ee880ea commit 8ffa846
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iceoryx2-bb/container/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ rust_library(
],
)

# alias the library which enables the testing feature to avoid the cargo reports iceoryx2-bb-elementary is missed.
alias(
name = "iceoryx2-bb-elementary",
actual = "//iceoryx2-bb/elementary:iceoryx2-bb-elementary-with-feature-testing",
)

rust_test_suite(
name = "iceoryx2-bb-container-tests",
srcs = glob(["tests/**/*.rs"]),
Expand Down
10 changes: 10 additions & 0 deletions iceoryx2-bb/elementary/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ filegroup(
rust_library(
name = "iceoryx2-bb-elementary",
srcs = glob(["src/**/*.rs"]),
crate_features = [ "testing" ],
deps = [
"//iceoryx2-pal/concurrency-sync:iceoryx2-pal-concurrency-sync",
],
)

rust_library(
name = "iceoryx2-bb-elementary-with-feature-testing",
srcs = glob(["src/**/*.rs"]),
crate_features = [ "testing" ],
deps = [
"//iceoryx2-pal/concurrency-sync:iceoryx2-pal-concurrency-sync",
],
Expand Down

0 comments on commit 8ffa846

Please sign in to comment.