* [PATCH] HID: uclogic: Standardize test name prefix
@ 2022-11-10 17:49 José Expósito
2022-11-10 22:42 ` Maíra Canal
2022-11-14 14:04 ` Jiri Kosina
0 siblings, 2 replies; 3+ messages in thread
From: José Expósito @ 2022-11-10 17:49 UTC (permalink / raw)
To: jikos
Cc: benjamin.tissoires, mairacanal, linux-input, linux-kernel,
José Expósito
Commit 961bcdf956a4 ("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: José Expósito <jose.exposito89@gmail.com>
---
drivers/hid/hid-uclogic-params-test.c | 4 ++--
drivers/hid/hid-uclogic-rdesc-test.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/hid/hid-uclogic-params-test.c b/drivers/hid/hid-uclogic-params-test.c
index 57ef5d3e4b74..bfa7ccb7d1e8 100644
--- a/drivers/hid/hid-uclogic-params-test.c
+++ b/drivers/hid/hid-uclogic-params-test.c
@@ -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,
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;
s32 desc_params[UCLOGIC_RDESC_PH_ID_NUM];
@@ -175,7 +175,7 @@ static void uclogic_parse_ugee_v2_desc_test(struct kunit *test)
}
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),
{}
};
diff --git a/drivers/hid/hid-uclogic-rdesc-test.c b/drivers/hid/hid-uclogic-rdesc-test.c
index 3971a0854c3e..b429c541bf2f 100644
--- a/drivers/hid/hid-uclogic-rdesc-test.c
+++ b/drivers/hid/hid-uclogic-rdesc-test.c
@@ -187,7 +187,7 @@ static void uclogic_template_case_desc(struct uclogic_template_case *t,
KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases,
uclogic_template_case_desc);
-static void uclogic_template_test(struct kunit *test)
+static void hid_test_uclogic_template(struct kunit *test)
{
__u8 *res;
const struct uclogic_template_case *params = test->param_value;
@@ -203,7 +203,7 @@ static void uclogic_template_test(struct kunit *test)
}
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),
{}
};
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] HID: uclogic: Standardize test name prefix
2022-11-10 17:49 [PATCH] HID: uclogic: Standardize test name prefix José Expósito
@ 2022-11-10 22:42 ` Maíra Canal
2022-11-14 14:04 ` Jiri Kosina
1 sibling, 0 replies; 3+ messages in thread
From: Maíra Canal @ 2022-11-10 22:42 UTC (permalink / raw)
To: José Expósito, jikos
Cc: benjamin.tissoires, linux-input, linux-kernel
Hi José,
On 11/10/22 14:49, José Expósito wrote:
> Commit 961bcdf956a4 ("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: José Expósito <jose.exposito89@gmail.com>
It is great to see this coming to other subsystems!
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Best Regards,
- Maíra Canal
> ---
> drivers/hid/hid-uclogic-params-test.c | 4 ++--
> drivers/hid/hid-uclogic-rdesc-test.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/hid/hid-uclogic-params-test.c b/drivers/hid/hid-uclogic-params-test.c
> index 57ef5d3e4b74..bfa7ccb7d1e8 100644
> --- a/drivers/hid/hid-uclogic-params-test.c
> +++ b/drivers/hid/hid-uclogic-params-test.c
> @@ -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,
> 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;
> s32 desc_params[UCLOGIC_RDESC_PH_ID_NUM];
> @@ -175,7 +175,7 @@ static void uclogic_parse_ugee_v2_desc_test(struct kunit *test)
> }
>
> 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),
> {}
> };
> diff --git a/drivers/hid/hid-uclogic-rdesc-test.c b/drivers/hid/hid-uclogic-rdesc-test.c
> index 3971a0854c3e..b429c541bf2f 100644
> --- a/drivers/hid/hid-uclogic-rdesc-test.c
> +++ b/drivers/hid/hid-uclogic-rdesc-test.c
> @@ -187,7 +187,7 @@ static void uclogic_template_case_desc(struct uclogic_template_case *t,
> KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases,
> uclogic_template_case_desc);
>
> -static void uclogic_template_test(struct kunit *test)
> +static void hid_test_uclogic_template(struct kunit *test)
> {
> __u8 *res;
> const struct uclogic_template_case *params = test->param_value;
> @@ -203,7 +203,7 @@ static void uclogic_template_test(struct kunit *test)
> }
>
> 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),
> {}
> };
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] HID: uclogic: Standardize test name prefix
2022-11-10 17:49 [PATCH] HID: uclogic: Standardize test name prefix José Expósito
2022-11-10 22:42 ` Maíra Canal
@ 2022-11-14 14:04 ` Jiri Kosina
1 sibling, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2022-11-14 14:04 UTC (permalink / raw)
To: José Expósito
Cc: benjamin.tissoires, mairacanal, linux-input, linux-kernel
On Thu, 10 Nov 2022, José Expósito wrote:
> Commit 961bcdf956a4 ("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: José Expósito <jose.exposito89@gmail.com>
Applied to hid.git#for-6.2/uclogic. Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-14 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 17:49 [PATCH] HID: uclogic: Standardize test name prefix José Expósito
2022-11-10 22:42 ` Maíra Canal
2022-11-14 14:04 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).