-
Notifications
You must be signed in to change notification settings - Fork 41
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
Suggestion: Added basic architecture for common tests with cmd arguments #359
Suggestion: Added basic architecture for common tests with cmd arguments #359
Conversation
Signed-off-by: ahcorde <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ahcorde/common_test_initial_commit #359 +/- ##
===================================================================
Coverage 74.55% 74.55%
===================================================================
Files 128 128
Lines 5628 5628
===================================================================
Hits 4196 4196
Misses 1432 1432 Continue to review full report at Codecov.
|
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.
Yes!!! This is exactly what I was hoping for!
test/common_test/basic_test.cc
Outdated
static std::string GetLibToTest() | ||
{ | ||
return libToTest; | ||
} |
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.
nit: tabs to spaces on the 2 lines above
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.
test/common_test/CMakeLists.txt
Outdated
add_test(NAME ${test_name}_${PHYSICS_ENGINE_NAME} | ||
COMMAND | ||
${test_name} | ||
${CMAKE_BINARY_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_LIBRARY_TARGET_NAME}-${PHYSICS_ENGINE_NAME}-plugin${CMAKE_SHARED_LIBRARY_SUFFIX} |
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.
nit: use a generator expression to get the library file path from a target name
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.
Signed-off-by: ahcorde <[email protected]>
…it' into ahcorde/common_test_initial_commit_cmd
…it' into ahcorde/common_test_initial_commit_cmd
Signed-off-by: ahcorde [email protected]
🎉 New feature
Summary
Use command line arguments to setup the physic engine library.
FYI @scpeters
Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.