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

Run p4c tests that require the behavioral model in Travis #253

Merged
merged 1 commit into from
Jan 24, 2017

Conversation

sethfowler
Copy link
Contributor

This PR updates the Dockerfile to include the behavioral model, which enables the full suite of BMV2 tests to run on Travis.

It will be straightforward to change the repo and tag used to clone behavior-model from in the future by modifying the appropriate ENV variables. I've used my fork for the time being because I discovered some issues on the behavioral-model side while setting this up, but once Antonin merges p4lang/behavioral-model#277 we can switch over to his repo. (Or we can just wait and update the PR; we'll get it taken care of quickly either way.)

@sethfowler sethfowler self-assigned this Jan 24, 2017
@@ -19,6 +20,19 @@ RUN apt-get update && \
python-scapy \
tcpdump

# Clone and build behavioral-model, which is needed by some tests.
ENV BEHAVIORAL_MODEL_REPO https://github.com/sethfowler/behavioral-model.git
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be p4lang not your fork

Copy link
Contributor

Choose a reason for hiding this comment

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

I should have read your explanation too. Go ahead and merge and we'll switch to main repo when Antonin merges 277.

@sethfowler
Copy link
Contributor Author

@cc10512 That's actually deliberate; it won't build with the p4lang version until Antonin merges p4lang/behavioral-model#277. Would you rather wait until he does that?

@sethfowler
Copy link
Contributor Author

Sounds good. Thanks!

@sethfowler sethfowler merged commit 8aa6075 into p4lang:master Jan 24, 2017
@sethfowler sethfowler deleted the seth/run-bmv2-tests-in-travis branch January 24, 2017 05:41
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.

2 participants