Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Run test in isolated process with switch #2

Merged
merged 10 commits into from
Apr 3, 2021
Merged

Run test in isolated process with switch #2

merged 10 commits into from
Apr 3, 2021

Conversation

debnil
Copy link
Contributor

@debnil debnil commented Apr 2, 2021

This runs each test in an isolated process, using the rusty_fork crate. It also invokes the bmv2 simple switch binary within each test, rather than requiring the user to run it externally. The README is updated with relevant instructors.

Note that the async tests are not run in forked processes. This is because they rely on pending work in the rusty_fork crate. The relevant pull requests are here and here.

debnil and others added 7 commits April 2, 2021 17:10
Move functions to set up the `p4ext` tests to the `p4ext` library. This lets us reuse these functions when testing the controller. We also remove an incorrectly-remaining file from `proto`. Commits #4.
@debnil debnil merged commit b158ab8 into main Apr 3, 2021
@debnil debnil deleted the testing-framework branch April 3, 2021 00:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants