diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2025-07-01 13:10:26 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-07-01 15:51:55 -0700 |
| commit | 34c4ff1cbf7e7b600496c5adb72131ec5510e459 (patch) | |
| tree | 8accf6437905f99f06a003d52de4cff5b5121b85 /tools/perf/tests/tests.h | |
| parent | 139ee54a2b3e9a4042307dd0484f85c0b3b45539 (diff) | |
| download | linux-next-34c4ff1cbf7e7b600496c5adb72131ec5510e459.tar.gz linux-next-34c4ff1cbf7e7b600496c5adb72131ec5510e459.zip | |
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>
Diffstat (limited to 'tools/perf/tests/tests.h')
| -rw-r--r-- | tools/perf/tests/tests.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/tests/tests.h b/tools/perf/tests/tests.h index 4c128a959441..97e62db8764a 100644 --- a/tools/perf/tests/tests.h +++ b/tools/perf/tests/tests.h @@ -3,6 +3,7 @@ #define TESTS_H #include <stdbool.h> +#include "util/debug.h" enum { TEST_OK = 0, @@ -177,6 +178,7 @@ DECLARE_SUITE(sigtrap); DECLARE_SUITE(event_groups); DECLARE_SUITE(symbols); DECLARE_SUITE(util); +DECLARE_SUITE(subcmd_help); /* * PowerPC and S390 do not support creation of instruction breakpoints using the |
