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

P4TC is missing a push-button packet-test runner #4944

Open
fruffy opened this issue Oct 4, 2024 · 2 comments
Open

P4TC is missing a push-button packet-test runner #4944

fruffy opened this issue Oct 4, 2024 · 2 comments
Assignees
Labels
enhancement This topic discusses an improvement to existing compiler code. p4tc Topics related to the P4-TC back end

Comments

@fruffy
Copy link
Collaborator

fruffy commented Oct 4, 2024

The BMv2 and eBPF test back ends have push-button test scripts such as run-bmv2-test.py or run-ebpf-test.py. These scripts allow sending a packet with a corresponding control-plane configuration and checking whether the resulting packet is as expected.

These push-button scripts can then be used by tools such as P4Testgen for automated compiler and target test. These scripts are also useful in showing how a particular target can be instrumented and used.

P4TC is missing such a script and workflow, which makes it harder to use or study. It would be great to add such a runner and extend run-tc-test.

@jhsmt

@fruffy fruffy added enhancement This topic discusses an improvement to existing compiler code. p4tc Topics related to the P4-TC back end labels Oct 4, 2024
@jhsmt
Copy link

jhsmt commented Oct 9, 2024 via email

@vbnogueira
Copy link
Contributor

@victor Nogueira @.***> @vbnogueira please look at this. Seems like something simple like arp responder maybe useful to kick it? cheers, jamal

Yes, I think arp responder could be an initial example
I'll look and sync with Komal on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This topic discusses an improvement to existing compiler code. p4tc Topics related to the P4-TC back end
Projects
None yet
Development

No branches or pull requests

4 participants