perf test: Rename struct test to test_suite

This is to align with kunit's terminology.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Daniel Latypov <dlatypov@google.com>
Cc: David Gow <davidgow@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Clarke <pc@us.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20211104064208.3156807-6-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Ian Rogers
2021-11-03 23:41:51 -07:00
committed by Arnaldo Carvalho de Melo
parent d68f036508
commit 33f44bfd3c
81 changed files with 125 additions and 123 deletions

View File

@@ -27,9 +27,9 @@ enum {
TEST_SKIP = -2,
};
struct test {
struct test_suite {
const char *desc;
int (*func)(struct test *test, int subtest);
int (*func)(struct test_suite *test, int subtest);
struct {
bool skip_if_fail;
int (*get_nr)(void);
@@ -41,10 +41,10 @@ struct test {
};
#define DECLARE_SUITE(name) \
extern struct test suite__##name;
extern struct test_suite suite__##name;
#define DEFINE_SUITE(description, name) \
struct test suite__##name = { \
struct test_suite suite__##name = { \
.desc = description, \
.func = test__##name, \
}