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

[P4Testgen] Add an option to override the test name. #4401

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Feb 8, 2024

No description provided.

@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Feb 8, 2024
@fruffy fruffy requested a review from smolkaj February 8, 2024 13:52
Copy link
Member

@smolkaj smolkaj left a comment

Choose a reason for hiding this comment

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

Nice, LGTM

@@ -90,6 +91,10 @@ class TestgenOptions : public AbstractP4cToolOptions {
/// Specifies minimum coverage that needs to be achieved for P4Testgen to exit successfully.
float minCoverage = 0;

/// The base name of the tests which are generated.
/// Defaults to the name of the input program, if provided.
std::optional<cstring> testName;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: If it is the base name, perhaps it would be good for the variable to be named accordingly? testBaseName?

@fruffy fruffy force-pushed the fruffy/testbackend_config branch from 5ac93fd to 81974aa Compare February 8, 2024 20:40
@fruffy fruffy force-pushed the fruffy/testname_override branch from d2a5bb4 to 8e40efc Compare February 8, 2024 20:46
@fruffy fruffy force-pushed the fruffy/testbackend_config branch 2 times, most recently from fd7c6d7 to a50b982 Compare February 8, 2024 22:28
Base automatically changed from fruffy/testbackend_config to main February 8, 2024 23:08
@fruffy fruffy force-pushed the fruffy/testname_override branch from 8e40efc to 165f7dd Compare February 8, 2024 23:15
@fruffy fruffy marked this pull request as ready for review February 8, 2024 23:15
@fruffy fruffy enabled auto-merge (squash) February 9, 2024 00:30
@fruffy fruffy force-pushed the fruffy/testname_override branch from 165f7dd to 18137ea Compare February 9, 2024 00:47
@fruffy fruffy merged commit 9f24135 into main Feb 9, 2024
16 checks passed
@fruffy fruffy deleted the fruffy/testname_override branch February 9, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants