perf tests: Make DSO tests a suite rather than individual
authorIan Rogers <irogers@google.com>
Tue, 28 Nov 2023 19:46:24 +0000 (11:46 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Dec 2023 00:34:36 +0000 (21:34 -0300)
Make the DSO data tests a suite rather than individual so their output
is grouped.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yang Jihong <yangjihong1@huawei.com>
Link: https://lore.kernel.org/r/20231128194624.1419260-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/builtin-test.c
tools/perf/tests/dso-data.c

index b8c21e81a021be581a7711f6692667509891792d..4a5973f9bb9b370f1bc966f04e1efdd7b03ef64d 100644 (file)
@@ -62,8 +62,6 @@ static struct test_suite *generic_tests[] = {
        &suite__pmu,
        &suite__pmu_events,
        &suite__dso_data,
-       &suite__dso_data_cache,
-       &suite__dso_data_reopen,
        &suite__perf_evsel__roundtrip_name_test,
 #ifdef HAVE_LIBTRACEEVENT
        &suite__perf_evsel__tp_sched_test,
index 3419a4ab5590f5fff2ae85334f8941b0c159b2e3..2d67422c1222949700e7759fd174080ea439765a 100644 (file)
@@ -394,6 +394,15 @@ static int test__dso_data_reopen(struct test_suite *test __maybe_unused, int sub
        return 0;
 }
 
-DEFINE_SUITE("DSO data read", dso_data);
-DEFINE_SUITE("DSO data cache", dso_data_cache);
-DEFINE_SUITE("DSO data reopen", dso_data_reopen);
+
+static struct test_case tests__dso_data[] = {
+       TEST_CASE("read", dso_data),
+       TEST_CASE("cache", dso_data_cache),
+       TEST_CASE("reopen", dso_data_reopen),
+       {       .name = NULL, }
+};
+
+struct test_suite suite__dso_data = {
+       .desc = "DSO data tests",
+       .test_cases = tests__dso_data,
+};