-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enables regression testing in bazel. #246
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e54a373
Enables regression testing in bazel.
francocipollone f94e0f0
Merge branch 'main' into francocipollone/enable_bazel_testing
francocipollone c5b044f
Merge branch 'main' into francocipollone/enable_bazel_testing
francocipollone 71348a9
Merge branch 'main' into francocipollone/enable_bazel_testing
francocipollone 6bcc2c6
Merge branch 'main' into francocipollone/enable_bazel_testing
francocipollone 9a15962
Adds pending regression testing files.
francocipollone ffa0582
Changes visibility.
francocipollone 13ca1ba
Merge branch 'main' into francocipollone/enable_bazel_testing
francocipollone f770bf4
Enables test module in bcr.
francocipollone b86e44f
Adds comment on plugin test.
francocipollone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
############################################################################### | ||
# TODO(stonier): | ||
# Reenable once a solution to #585 [1] is found. See also comments in | ||
# generate_unit_tests. | ||
# | ||
# [1] https://github.com/maliput/maliput/issues/585 | ||
############################################################################### | ||
|
||
############################################################################### | ||
# Loaders | ||
############################################################################### | ||
|
||
# load("//:bazel/variables.bzl", "COPTS") | ||
# load("//:bazel/testing.bzl", "generate_unit_tests") | ||
load("//:bazel/variables.bzl", "COPTS") | ||
load("//:bazel/testing.bzl", "generate_unit_tests") | ||
|
||
############################################################################### | ||
# Test | ||
############################################################################### | ||
|
||
# generate_unit_tests( | ||
# sources = glob(["*.cc"]), | ||
# ) | ||
generate_unit_tests( | ||
sources = glob(["*.cc"]), | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you also allow to pass a list of target dependencies.
That will allow to select in each library the target link dependencies and pair it to what we do in cmake.
I also prefer to have the for loop in each BUILD.bazel file and only pass here the src list with just one file instead of the entire list. It is a matter of composability.
Note you also have the ability to pass in kwargs and default values --> https://bazel.build/rules/macro-tutorial . That could help with target customization. For instance, if we have at some point a test that deserves promotion to
size="medium"
we could use default values and override the default "small".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that this is solution is actually better.
However I tried to replicate the current CMake setup, and in the current CMake setup we link to all the targets: https://github.com/maliput/maliput_malidrive/blob/eb547917ac19c1d56efdc5ab09665e49e9571e97/test/CMakeLists.txt