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

Testing strategy for --target-tofino #18

Open
taegyunkim opened this issue Jan 3, 2020 · 0 comments
Open

Testing strategy for --target-tofino #18

taegyunkim opened this issue Jan 3, 2020 · 0 comments
Assignees

Comments

@taegyunkim
Copy link
Collaborator

  1. First define a common header file, probably in .h or using ProtocolBuffer, to capture StructAndPacket in sketch files and UDP packet definition in tofino-boilerplate.
  2. When converting .c file to .sk file in domino-compiler, use that header, and generate both .h (which should contain the spec function implementation using the common header file) and .sk files.
  3. Compile .sk file using iterative_solver --target-tofino.
  4. Modify the tofino-boilerplate's control plane program to link with modified .h file from step 2, and call the spec function for each packet and compare the output.
@anirudhSK anirudhSK self-assigned this Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants