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

Test Macro Functionality #300

Closed
IshDeshpa opened this issue Mar 25, 2023 · 2 comments
Closed

Test Macro Functionality #300

IshDeshpa opened this issue Mar 25, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@IshDeshpa
Copy link
Contributor

Whenever we compile our code to run a test file, we need to define some sort of global TEST macro that will allow us to condition on whether we are testing or not. An example of this in our current codebase is __TEST_SendTritium in SendTritium.h, but I'd like a more global TEST macro that will apply to all of our codebase. This macro will enable any conditional code in our BSP/drivers/apps that we only want to run/access when testing.

@IshDeshpa IshDeshpa added the enhancement New feature or request label Mar 25, 2023
@IshDeshpa IshDeshpa self-assigned this Mar 25, 2023
@IshDeshpa
Copy link
Contributor Author

IshDeshpa commented Nov 1, 2023

This may need to be reevaluated based on larger design decisions and our needs under the new software architecture. Do we want one test macro or multiple (one for each file)? Do we even want any sort of conditional test functionality in our source code, or should it be relegated to test files only? More consideration needs to be made.

@IshDeshpa
Copy link
Contributor Author

Closing this in favor of #378

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant