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 packet example and integration test #417

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

thebendavis
Copy link
Member

@thebendavis thebendavis commented Jul 9, 2024

This adds a standalone example (packet.exe) and an integration test. Beyond testing basic verifier functionality, this is intended to provide an integration test of the 1) terminal user interaction, and 2) resulting equivalence condition, in ways that the other automated tests do not. The integration test is implemented as an expect script that captures a subset of the expected output including a key clause of the equivalence condition, and will alert / need to be updated if this output changes during evolution of the PATE verifier.

This integration test has been added to the docker CI job. I have not additionally added it to the build CI job because that job uses cabal build pkg:pate which breaks subsequent use of ./pate.sh, which is the interface used by the integration test. This issue is captured separately in #418 and is outside of the scope of this PR.

@thebendavis thebendavis force-pushed the bd/packet-integration-test branch 2 times, most recently from 95ea397 to d0c8633 Compare July 9, 2024 19:14
@thebendavis thebendavis marked this pull request as ready for review July 10, 2024 11:44
@thebendavis thebendavis mentioned this pull request Jul 8, 2024
3 tasks
@thebendavis thebendavis self-assigned this Jul 10, 2024
@danmatichuk
Copy link
Collaborator

This looks fine to me, I think including at least one example that bypasses the normal "scripting" interface makes sense as a sanity check. I think it also makes sense to test it both via docker and natively once #418 is addressed.

.github/workflows/main.yml Show resolved Hide resolved
tests/integration/packet/packet.exp Show resolved Hide resolved
tests/integration/packet/packet.exp Show resolved Hide resolved
subsumed by docker integration test, see #417
@thebendavis
Copy link
Member Author

This looks fine to me, I think including at least one example that bypasses the normal "scripting" interface makes sense as a sanity check. I think it also makes sense to test it both via docker and natively once #418 is addressed.

Thanks for the review! I have flagged the appropriate items for followup in relevant issues.

@thebendavis thebendavis merged commit b4cb6a9 into master Jul 10, 2024
2 checks passed
@thebendavis thebendavis deleted the bd/packet-integration-test branch July 11, 2024 21:10
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