Skip to content

Conversation

MateuszGrabuszynski
Copy link
Collaborator

@MateuszGrabuszynski MateuszGrabuszynski commented Aug 13, 2025

pcap_capture fixture prepared:
gather info from test_config about capture options like frame_number or capture time
create NetsniffRecorder class and yields the object
connect to the EBU server (info from test config)
send pcap to EBU list and gather compiance result

NetsniffRecorder class:
netsniff-ng wrapper for capturing packets

RxTxApp adaptation for packet capturing during traffic with netsniff obejct

Test cases adaptation (ST20 ST30 - video and audio, these which type_mode is mutlicast)

@MateuszGrabuszynski MateuszGrabuszynski changed the title Add: Automation for netsniff-ng packet capture Tests: Automation for netsniff-ng packet capture Aug 14, 2025
@MateuszGrabuszynski MateuszGrabuszynski changed the title Tests: Automation for netsniff-ng packet capture Test: Automation for netsniff-ng packet capture Aug 18, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds automation support for netsniff-ng packet capture alongside existing tcpdump functionality, allowing test configuration to choose between capture tools via a tool parameter. The implementation includes a new NetsniffRecorder class modeled after TcpDumpRecorder and updates test files to support both capture methods.

  • Introduces conditional packet capture execution for netsniff-ng across test execution engines
  • Adds NetsniffRecorder class for netsniff-ng packet capture automation
  • Updates comment consistency to reflect actual configuration behavior rather than just tcpdump

Reviewed Changes

Copilot reviewed 52 out of 53 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/validation/configs/test_config.yaml Adds tool configuration option for capture method selection
tests/validation/create_pcap_file/netsniff.py New NetsniffRecorder class implementation for netsniff-ng automation
tests/validation/mtl_engine/RxTxApp.py Adds netsniff support and fixes dual test interface configuration
tests/validation/mtl_engine/ffmpeg_app.py Integrates netsniff capture in ffmpeg tests and adds new dual test functions
tests/validation/mtl_engine/GstreamerApp.py Adds netsniff capture support to GStreamer tests
tests/validation/mtl_engine/udp_app.py Integrates netsniff capture in UDP application tests
Multiple test files Updates comments to reflect packet capture configuration rather than tcpdump-specific

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator Author

@MateuszGrabuszynski MateuszGrabuszynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving a few suggestions.

@andremiszcz andremiszcz force-pushed the netsniff-autom branch 2 times, most recently from a5ff5d2 to ae475c7 Compare September 22, 2025 19:07
Copy link
Collaborator

@staszczuk staszczuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the description of the PR.

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.

4 participants