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 only generate tests with dropped packets. #4416

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Feb 12, 2024

Add an option to P4Testgen to only generate tests where the packet is dropped. This PR also shows the benefits of the new API. We can now write targeted gtests to exercise a feature. Very useful!

I added tests for both --dropped-packet-only and --output-packet-only.

@fruffy fruffy changed the title Add an option to only generate tests with dropped packets. [P4Testgen] Add an option to only generate tests with dropped packets. Feb 12, 2024
@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Feb 12, 2024
@fruffy fruffy force-pushed the fruffy/testgen_dropped_packet_only branch from 0a1148a to e8907a7 Compare February 12, 2024 22:08
@fruffy fruffy force-pushed the fruffy/testgen_library_api branch 4 times, most recently from 7ab31fa to 94feeaf Compare February 13, 2024 01:05
Base automatically changed from fruffy/testgen_library_api to main February 13, 2024 02:59
@fruffy fruffy force-pushed the fruffy/testgen_dropped_packet_only branch 3 times, most recently from e02bab2 to b68543f Compare February 13, 2024 17:15
@fruffy fruffy force-pushed the fruffy/testgen_dropped_packet_only branch from b68543f to 0a57c9f Compare February 15, 2024 12:46
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.

Very nice!

@fruffy fruffy merged commit 2e3b9f5 into main Feb 15, 2024
16 checks passed
@fruffy fruffy deleted the fruffy/testgen_dropped_packet_only branch February 15, 2024 18:50
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