[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211104064208.3156807-17-irogers@google.com>
Date: Wed, 3 Nov 2021 23:42:02 -0700
From: Ian Rogers <irogers@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Jin Yao <yao.jin@...ux.intel.com>,
John Garry <john.garry@...wei.com>,
"Paul A . Clarke" <pc@...ibm.com>,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
Brendan Higgins <brendanhiggins@...gle.com>,
Daniel Latypov <dlatypov@...gle.com>,
David Gow <davidgow@...gle.com>,
Sohaib Mohamed <sohaib.amhmd@...il.com>
Cc: eranian@...gle.com, Ian Rogers <irogers@...gle.com>
Subject: [PATCH v3 16/22] perf test: bp tests use test case
Migration toward kunit style test cases.
Signed-off-by: Ian Rogers <irogers@...gle.com>
---
tools/perf/tests/bp_account.c | 7 ++++++-
tools/perf/tests/bp_signal.c | 7 ++++++-
tools/perf/tests/bp_signal_overflow.c | 7 ++++++-
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/tools/perf/tests/bp_account.c b/tools/perf/tests/bp_account.c
index 365120146d17..e4f7b635ffef 100644
--- a/tools/perf/tests/bp_account.c
+++ b/tools/perf/tests/bp_account.c
@@ -205,8 +205,13 @@ static bool test__bp_account_is_supported(void)
#endif
}
+static struct test_case bp_accounting_tests[] = {
+ TEST_CASE("Breakpoint accounting", bp_accounting),
+ { .name = NULL, }
+};
+
struct test_suite suite__bp_accounting = {
.desc = "Breakpoint accounting",
- .func = test__bp_accounting,
+ .test_cases = bp_accounting_tests,
.is_supported = test__bp_account_is_supported,
};
diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c
index 3c269f81818a..1676e3a11906 100644
--- a/tools/perf/tests/bp_signal.c
+++ b/tools/perf/tests/bp_signal.c
@@ -312,8 +312,13 @@ bool test__bp_signal_is_supported(void)
#endif
}
+static struct test_case bp_signal_tests[] = {
+ TEST_CASE("Breakpoint overflow signal handler", bp_signal),
+ { .name = NULL, }
+};
+
struct test_suite suite__bp_signal = {
.desc = "Breakpoint overflow signal handler",
- .func = test__bp_signal,
+ .test_cases = bp_signal_tests,
.is_supported = test__bp_signal_is_supported,
};
diff --git a/tools/perf/tests/bp_signal_overflow.c b/tools/perf/tests/bp_signal_overflow.c
index 5ac6e1393cf4..bc1f13851750 100644
--- a/tools/perf/tests/bp_signal_overflow.c
+++ b/tools/perf/tests/bp_signal_overflow.c
@@ -134,8 +134,13 @@ static int test__bp_signal_overflow(struct test_suite *test __maybe_unused, int
return fails ? TEST_FAIL : TEST_OK;
}
+static struct test_case bp_signal_overflow_tests[] = {
+ TEST_CASE("Breakpoint overflow sampling", bp_signal_overflow),
+ { .name = NULL, }
+};
+
struct test_suite suite__bp_signal_overflow = {
.desc = "Breakpoint overflow sampling",
- .func = test__bp_signal_overflow,
+ .test_cases = bp_signal_overflow_tests,
.is_supported = test__bp_signal_is_supported,
};
--
2.33.1.1089.g2158813163f-goog
Powered by blists - more mailing lists