-
Notifications
You must be signed in to change notification settings - Fork 444
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] Allow building p4testgen without BMV2 target #4109
Conversation
These are the remaining testgen tests that run with BMV2 disabled:
|
@@ -52,15 +52,7 @@ set( | |||
test/gtest_utils.cpp | |||
test/lib/format_int.cpp | |||
test/lib/taint.cpp | |||
test/small-step/binary.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these all assume v1model
in some way? Might be a flaw in the test design...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They all fail with messages like this:
[ RUN ] SmallStepTest.Unary02
unknown file: Failure
C++ exception with description "In file: /home/xstill/repo/p4c/backends/p4tools/modules/testgen/test/gtest_utils.cpp:21
Compiler Bug: Target bmv2/v1model not supported
" thrown in the test body.
Frankly, I'm not entirely sure what is the relation between BMV2 and v1model here :-).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, maybe we should introduce a p4test
like extension that works for any target at some point. Just for debugging.
The v1model1
arch is executed on bmv2
. Theoretically it could also be v1model
on DPDK or Tofino.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would replace "theoretically" with "hypothetically", or any other word that means "this seems very unlikely to happen, until and unless some very time-rich and motivated volunteers agree to extend P4-DPDK open source implementation to do this".
It is open source, so of course it can happen. I just don't want anyone reading this to mistake the prerequisites required to make it happen. No one I am aware of is signing up for such a project for P4-DPDK.
Note that this in order to properly test the core of testgen you still need BMV2 testgen target enabled.
fixes #4107