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

Add unit tests with top-level Makefile. #103

Open
robertsoule-barefoot opened this issue Nov 14, 2017 · 3 comments
Open

Add unit tests with top-level Makefile. #103

robertsoule-barefoot opened this issue Nov 14, 2017 · 3 comments

Comments

@robertsoule-barefoot
Copy link
Contributor

No description provided.

@Madhav-2808
Copy link

@robertsoule-barefoot ,can you please provide the description regarding the issue

@jafingerhut
Copy link
Collaborator

It has been a few years since Robert was actively contributing to this repository.

From the title, I think the basic idea is to have some kind of automated unit tests that some subset of the code in this repository can be verified that they pass, or fail if the test finds a bug, that can be run by just running one or two commands from a shell, e.g. cd <some-directory>; make check or something like that.

@jafingerhut
Copy link
Collaborator

Note that right now I do not recall there being any such tests in this repository, so there are no existing examples in this repository to work from.

There are automated tests such as PTF tests that exist in other p4lang repositories that might be helpful as ideas to start from, e.g.:

Note that those PTF tests use different Python APIs than the tutorials repository does for adding/modifying/deleting table entries, which can be confusing when you first encounter such differences.

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

No branches or pull requests

3 participants