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

Resubmit tests #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Resubmit tests #16

wants to merge 3 commits into from

Conversation

kevinye2
Copy link
Collaborator

Check this out?

@kevinye2 kevinye2 requested review from peteli3 and derek-so April 26, 2019 15:57
default_action = inc;
}

table debug {
Copy link
Owner

Choose a reason for hiding this comment

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

lets remove debug tbl for the actual test.


apply {
t.apply();
debug.apply();
Copy link
Owner

Choose a reason for hiding this comment

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

remove this pls for when we submit

in empty_metadata_t clone_i2e_meta,
in empty_metadata_t clone_e2e_meta)
{
state start {
Copy link
Owner

Choose a reason for hiding this comment

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

right before transition accept;, we need to add a buffer.extract(hdr.ethernet);

@@ -0,0 +1,3 @@
# This packet should be resubmit four times
Copy link
Owner

Choose a reason for hiding this comment

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

can we also add an edge case that should resubmit zero times?

@peteli3
Copy link
Owner

peteli3 commented Apr 26, 2019

@kevinye2
Hey I think we might have some issues if we submit this to p4lang since the commit history is different.
After a few changes, can we do the following (you might need to copy your stf test files to desktop or something temporarily):

  1. git remote add upstream https://github.com/p4lang/p4c
  2. git fetch upstream
  3. git checkout upstream/master
  4. git checkout -b psa-resubmit-tests
  5. then add your new STF test file to this new branch, commit, push

}
table t {
actions = { inc;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

They really care about style, can you change this to { inc; } thanks.

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

Successfully merging this pull request may close these issues.

3 participants