mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 18:42:25 -04:00
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:
committed by
Arnaldo Carvalho de Melo
parent
d68f036508
commit
33f44bfd3c
@@ -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, \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user