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

Implement self-test #10

Open
emmericp opened this issue Jan 27, 2018 · 0 comments
Open

Implement self-test #10

emmericp opened this issue Jan 27, 2018 · 0 comments

Comments

@emmericp
Copy link
Owner

Tests are important! And also difficult when you have hardware dependencies :(

We can implement a simple full system test by adding another example application: ixy-dump which dumps packets to a pcap file.

We can then use all three example applications together for a system test

  • send packets with ixy-pktgen (and let's add a sequence number generater here)
  • forward them with ixy-fwd
  • dump them to a pcap with ixy-dump

Then we can just check if the generated pcap file contains packets with increasing sequence numbers. This can be run on a single server with four connected interfaces.

The important part here is that this tests the actual applications, because there is nothing worse than having examples that just don't work because no one ever tests them.

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

1 participant