1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/perf/tests/shell/common
Veronika Molnarova 61d348f1e9 perf testsuite: Add common output checking helpers
As a form of validation, it is a common practice to check the outputs
of commands whether they contain expected patterns or match a certain
regex.

Add helpers for verifying that all regexes are found in the output, that
all lines match any pattern from a set and that a certain expression is
not present in the output.

In verbose mode these helpers log mismatches for easier failure
investigation.

Signed-off-by: Veronika Molnarova <vmolnaro@redhat.com>
Signed-off-by: Michael Petlan <mpetlan@redhat.com>
Cc: kjain@linux.ibm.com
Cc: atrajeev@linux.vnet.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240215110231.15385-6-mpetlan@redhat.com
2024-02-16 11:49:36 -08:00
..
check_all_lines_matched.pl perf testsuite: Add common output checking helpers 2024-02-16 11:49:36 -08:00
check_all_patterns_found.pl perf testsuite: Add common output checking helpers 2024-02-16 11:49:36 -08:00
check_no_patterns_found.pl perf testsuite: Add common output checking helpers 2024-02-16 11:49:36 -08:00
init.sh perf testsuite: Add initialization script for shell tests 2024-02-16 11:48:58 -08:00
patterns.sh
settings.sh perf testsuite: Add common setting for shell tests 2024-02-16 11:48:40 -08:00