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

Generate warning when 0 tests are produced #3784

Merged
merged 3 commits into from
Dec 19, 2022

Conversation

hannelita
Copy link
Contributor

Reimplementation from #3776 . Generalized case.

@@ -145,6 +145,12 @@ int Testgen::mainImpl(const IR::P4Program* program) {
throw;
}

if (testBackend->getTestCount() == 0) {
::warning(
"Unable to generate tests with give inputs. Double-check provided options and "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"Unable to generate tests with give inputs. Double-check provided options and "
"Unable to generate tests with given inputs. Double-check provided options and "

@@ -112,6 +112,9 @@ class TestBackEnd {

/// Print out some performance numbers if logging feature "performance" is enabled.
static void printPerformanceReport();

/// Accessors
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
/// Accessors
/// Accessors.

@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Dec 16, 2022
@fruffy fruffy merged commit 8876cec into p4lang:main Dec 19, 2022
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