aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/builtin-stat.c
diff options
context:
space:
mode:
authorGravatar Veronika Molnarova <vmolnaro@redhat.com> 2024-02-15 12:02:29 +0100
committerGravatar Namhyung Kim <namhyung@kernel.org> 2024-02-16 11:49:36 -0800
commit61d348f1e96fe11ba7d3714bcc700d8fd71aa17e (patch)
tree1a345ee842cbd17a45732cebf835410cfb854525 /tools/perf/builtin-stat.c
parentperf testsuite: Add test case for perf probe (diff)
downloadlinux-61d348f1e96fe11ba7d3714bcc700d8fd71aa17e.tar.gz
linux-61d348f1e96fe11ba7d3714bcc700d8fd71aa17e.tar.bz2
linux-61d348f1e96fe11ba7d3714bcc700d8fd71aa17e.zip
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
Diffstat (limited to 'tools/perf/builtin-stat.c')
0 files changed, 0 insertions, 0 deletions