Skip to content
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

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Jun 17, 2022

Signed-off-by: ahcorde [email protected]

🎉 New feature

Summary

Use command line arguments to setup the physic engine library.

FYI @scpeters

Test it

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

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.

@ahcorde ahcorde self-assigned this Jun 17, 2022
@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #359 (12734d9) into ahcorde/common_test_initial_commit (e2e4e62) will not change coverage.
The diff coverage is n/a.

@@                         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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2e4e62...12734d9. Read the comment docs.

Copy link
Member

@scpeters scpeters left a 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!

static std::string GetLibToTest()
{
return libToTest;
}
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahcorde added 3 commits June 20, 2022 15:42
Signed-off-by: ahcorde <[email protected]>
…it' into ahcorde/common_test_initial_commit_cmd
…it' into ahcorde/common_test_initial_commit_cmd
@ahcorde ahcorde marked this pull request as ready for review June 20, 2022 13:44
@ahcorde ahcorde requested review from azeey and mxgrey as code owners June 20, 2022 13:44
@ahcorde ahcorde requested a review from scpeters June 20, 2022 13:44
@chapulina chapulina added 🌱 garden Ignition Garden tests Broken or missing tests / testing infra labels Jun 20, 2022
@ahcorde ahcorde merged commit 8510048 into ahcorde/common_test_initial_commit Jun 20, 2022
@ahcorde ahcorde deleted the ahcorde/common_test_initial_commit_cmd branch June 20, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden tests Broken or missing tests / testing infra
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants