[PATCH v2 4/7] test: add flow parser unit tests

Stephen Hemminger stephen at networkplumber.org
Tue Jan 6 19:07:05 CET 2026


On Tue,  6 Jan 2026 16:38:34 +0100
Lukas Sismis <sismis at dyna-nic.com> wrote:

> Add comprehensive unit tests for the flow parser library.
> 
> Tests cover:
> - flow_parser_autotest: Tests rte_flow_parser_parse() with various
>   flow command strings including create, destroy, validate, query,
>   list, and isolate commands. Verifies parsed patterns, actions,
>   and attributes match expected values.
> 
> - flow_parser_helpers_autotest: Tests the standalone helper functions
>   parse_attr_str(), parse_pattern_str(), and parse_actions_str().
>   Verifies parsing of attributes, patterns with various item types,
>   and action sequences.
> 
> Run with: dpdk-test flow_parser_autotest
>           dpdk-test flow_parser_helpers_autotest
> 
> Signed-off-by: Lukas Sismis <sismis at dyna-nic.com>
> ---

Should add some negative tests to make sure flow_parser doesn't die on bogus inputs.
AI might help in creating more tests.


More information about the dev mailing list