perf test: Add libsubcmd help tests
authorNamhyung Kim <namhyung@kernel.org>
Tue, 1 Jul 2025 20:10:26 +0000 (13:10 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 1 Jul 2025 22:51:55 +0000 (15:51 -0700)
commit34c4ff1cbf7e7b600496c5adb72131ec5510e459
tree8accf6437905f99f06a003d52de4cff5b5121b85
parent139ee54a2b3e9a4042307dd0484f85c0b3b45539
perf test: Add libsubcmd help tests

Add a set of tests for subcmd routines.  Currently it fails the last one
since there's a bug.  It'll be fixed by the next commit.

  $ perf test subcmd
   69: libsubcmd help tests                                            :
   69.1: Load subcmd names                                             : Ok
   69.2: Uniquify subcmd names                                         : Ok
   69.3: Exclude duplicate subcmd names                                : FAILED!

Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250701201027.1171561-2-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/subcmd-help.c [new file with mode: 0644]
tools/perf/tests/tests.h