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 interop tests between py-libp2p and rust-libp2p for ping protocol #529

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paschal533
Copy link
Contributor

@paschal533 paschal533 commented Mar 3, 2025

Description

This PR adds interoperability tests between py-libp2p and rust-libp2p implementations, focusing on the ping protocol over TCP transport.

What does this PR do?

  • Creates a new interop/rust directory structure for testing py-libp2p against rust-libp2p implementations
  • Implements a comprehensive test for the ping protocol that can:
    • Test py-libp2p client → rust-libp2p server
    • Test rust-libp2p client → py-libp2p server
    • Test bidirectional communication
  • Provides documentation and scripts to easily run the tests

How to test

  1. Make sure you have both py-libp2p and rust-libp2p repositories cloned
  2. Follow the instructions in the tests/interop/rust/README.md file
  3. Run ./tests/interop/rust/run_tests.sh

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.

1 participant