Commit af89dfde authored by José Expósito's avatar José Expósito Committed by Jiri Kosina

HID: uclogic: Standardize test name prefix

Commit 961bcdf9 ("drm/tests: Change "igt_" prefix to "drm_test_"")
introduced a new naming convention for the KUnit tests present in the
DRM subsystem: "drm_test_<module>_<test name>".

This naming convention is very convenient because it allows to easily
run all subsystem tests or all driver tests using kunit.py's wildcards.

Follow the naming conventions used in the DRM subsystem adapted to the
HID subsystem: "hid_test_<module>_<test name>".
Signed-off-by: default avatarJosé Expósito <jose.exposito89@gmail.com>
Reviewed-by: default avatarMaíra Canal <mairacanal@riseup.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f9ce4db0
...@@ -136,7 +136,7 @@ static void uclogic_parse_ugee_v2_desc_case_desc(struct uclogic_parse_ugee_v2_de ...@@ -136,7 +136,7 @@ static void uclogic_parse_ugee_v2_desc_case_desc(struct uclogic_parse_ugee_v2_de
KUNIT_ARRAY_PARAM(uclogic_parse_ugee_v2_desc, uclogic_parse_ugee_v2_desc_cases, KUNIT_ARRAY_PARAM(uclogic_parse_ugee_v2_desc, uclogic_parse_ugee_v2_desc_cases,
uclogic_parse_ugee_v2_desc_case_desc); uclogic_parse_ugee_v2_desc_case_desc);
static void uclogic_parse_ugee_v2_desc_test(struct kunit *test) static void hid_test_uclogic_parse_ugee_v2_desc(struct kunit *test)
{ {
int res; int res;
s32 desc_params[UCLOGIC_RDESC_PH_ID_NUM]; s32 desc_params[UCLOGIC_RDESC_PH_ID_NUM];
...@@ -175,7 +175,7 @@ static void uclogic_parse_ugee_v2_desc_test(struct kunit *test) ...@@ -175,7 +175,7 @@ static void uclogic_parse_ugee_v2_desc_test(struct kunit *test)
} }
static struct kunit_case hid_uclogic_params_test_cases[] = { static struct kunit_case hid_uclogic_params_test_cases[] = {
KUNIT_CASE_PARAM(uclogic_parse_ugee_v2_desc_test, KUNIT_CASE_PARAM(hid_test_uclogic_parse_ugee_v2_desc,
uclogic_parse_ugee_v2_desc_gen_params), uclogic_parse_ugee_v2_desc_gen_params),
{} {}
}; };
......
...@@ -187,7 +187,7 @@ static void uclogic_template_case_desc(struct uclogic_template_case *t, ...@@ -187,7 +187,7 @@ static void uclogic_template_case_desc(struct uclogic_template_case *t,
KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases, KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases,
uclogic_template_case_desc); uclogic_template_case_desc);
static void uclogic_template_test(struct kunit *test) static void hid_test_uclogic_template(struct kunit *test)
{ {
__u8 *res; __u8 *res;
const struct uclogic_template_case *params = test->param_value; const struct uclogic_template_case *params = test->param_value;
...@@ -203,7 +203,7 @@ static void uclogic_template_test(struct kunit *test) ...@@ -203,7 +203,7 @@ static void uclogic_template_test(struct kunit *test)
} }
static struct kunit_case hid_uclogic_rdesc_test_cases[] = { static struct kunit_case hid_uclogic_rdesc_test_cases[] = {
KUNIT_CASE_PARAM(uclogic_template_test, uclogic_template_gen_params), KUNIT_CASE_PARAM(hid_test_uclogic_template, uclogic_template_gen_params),
{} {}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment