On 12/11/2025 17:04, David Marchand via dev wrote:
> Define macros to limit copy/paste (those will be reused later).
> 
> To ease test debugging, store composed and expected good/bad packets
> in the unit test working directory, and pass the file names.
> 
> Example:
> $ make -C build check TESTSUITEFLAGS="1098 -d -v"
> ...
> ../../tests/dpif-netdev.at:808:
>       ovs-vsctl set interface p1 options:ol_ip_rx_csum_set_good=true
> ../../tests/dpif-netdev.at:808:
>       ovs-appctl netdev-dummy/receive p1 $(cat good_frame)
> ../../tests/dpif-netdev.at:808:
>       ovs-pcap p2.pcap > p2.pcap.txt 2>&1
> ../../tests/dpif-netdev.at:808:
>       tail -n 1 p2.pcap.txt
> ../../tests/dpif-netdev.at:808:
>       ovs-vsctl set interface p1 options:ol_ip_rx_csum_set_good=false
> ...
> 
> Signed-off-by: David Marchand <[email protected]>
> ---
>  tests/dpif-netdev.at | 970 ++++++++-----------------------------------
>  1 file changed, 175 insertions(+), 795 deletions(-)

LGTM
Acked-by: Kevin Traynor <[email protected]>


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to