How to Write and Run Tests in the New DPDK Test Framework – Luca Vizzaro & Patrick Robb
summary
The new DTS is a work‑in‑progress test framework that currently targets physical devices and requires two nodes (or loopback), scapy as the functional traffic generator, Docker/devcontainer or Python 3.10+ with poetry, and SSH keys mounted; the demo builds a Docker runner image, mounts the DPDK repo and runs a hello_world suite. Tests live under tests with filenames prefixed test_ and classes inheriting TestSuite (PascalCase); APIs include send_packet_and_capture, get_expected_packet, verify/verify_packets and packet generators. Upcoming: NIC capability skips, per‑test config, SR‑IOV/VM support and T‑Rex for perf.
AI-written summary · about
chapters (6)
- 0:00Introduction to DTS
- 1:26Requirements for running DTS
- 3:32Running Hello World example
- 5:39Writing a test suite
- 14:25Upcoming changes and future work
- 16:55Resources and acknowledgments
related talks
18mTesting Intel TDX functionality with new set of self tests
19mUpstream kernel CI using patchew and TDC
41mData Driven and Containerized Testing of Multi Service Networked Systems
50mTips for Writing Good Tests for Linux
30mTesting in A Distributed Systems World
41mKeeping up with LTS: Linux Kernel Functional Testing (LKFT) on Devices
46mZephyr Application Development Using TDD: Getting Started
23mTwister V2: New Framework for Testing Based on Pytest. Overview & Current Status
