Skip to content

Resubmit tests#16

Open
kevinye2 wants to merge 3 commits intomasterfrom
resubmit_tests
Open

Resubmit tests#16
kevinye2 wants to merge 3 commits intomasterfrom
resubmit_tests

Conversation

@kevinye2
Copy link
Copy Markdown
Collaborator

Check this out?

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

table debug {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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