2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-24 19:07:45 +00:00

3 Commits

Author SHA1 Message Date
Kumar Amber
e72b05686d tests/mfex: Improve pcap script for mfex tests.
The mfex pcap generation script is improved for varied length
traffic and also removes the hard coded mfex_pcap and instead uses
the script itself to generate complex traffic patterns for testing.

Signed-off-by: Kumar Amber <kumar.amber@intel.com>
Acked-by: Cian Ferriter <cian.ferriter@intel.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
2022-06-30 17:56:57 +01:00
kumar Amber
69b2bdfd3f system-dpdk.at: Fix module not found error for pyhton < 3.6.
This fixes the flake8 error on pyhton version older than 3.6
as ModuleNotFoundError in not available before 3.6.

../../tests/mfex_fuzzy.py:5:8: F821 undefined name 'ModuleNotFoundError'
Makefile:5826: recipe for target 'flake8-check' failed

Since it doesn't really make any sense to catch this exception,
try-except block is just removed.  Additionally the check for
scapy replaced with the more reliable one.  Imports re-ordered,
because standard imports should go first.

Fixes: 50be6715c0 ("test/sytem-dpdk: Add unit test for mfex autovalidator")
Signed-off-by: kumar Amber <kumar.amber@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2021-07-23 17:25:46 +02:00
Kumar Amber
50be6715c0 test/sytem-dpdk: Add unit test for mfex autovalidator
Tests:
  6: OVS-DPDK - MFEX Autovalidator
  7: OVS-DPDK - MFEX Autovalidator Fuzzy
  8: OVS-DPDK - MFEX Configuration

Added a new directory to store the PCAP file used
in the tests and a script to generate the fuzzy traffic
type pcap to be used in fuzzy unit test.

Signed-off-by: Kumar Amber <kumar.amber@intel.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
2021-07-16 11:30:31 +01:00