public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftest: hid: add missing run-hid-tools-tests.sh
@ 2024-09-29  8:55 Yun Lu
  2024-09-30  8:38 ` Benjamin Tissoires
  0 siblings, 1 reply; 5+ messages in thread
From: Yun Lu @ 2024-09-29  8:55 UTC (permalink / raw)
  To: jikos, bentiss, shuah; +Cc: linux-kselftest, linux-kernel

The HID test cases actually run tests using the run-hid-tools-tests.sh
script. However, if installed with "make install", the run-hid-tools-tests.sh
script will not be copied over, resulting in the following error message.

  make -C tools/testing/selftests/ TARGETS=hid install \
  	  INSTALL_PATH=$KSFT_INSTALL_PATH

  cd $KSFT_INSTALL_PATH
  ./run_kselftest.sh -c hid

selftests: hid: hid-core.sh
bash: ./run-hid-tools-tests.sh: No such file or directory

So add the run-hid-tools-tests.sh script to the TEST_FILES in the Makefile.

Signed-off-by: Yun Lu <luyun@kylinos.cn>
---
 tools/testing/selftests/hid/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile
index 72be55ac4bdf..38ae31bb07b5 100644
--- a/tools/testing/selftests/hid/Makefile
+++ b/tools/testing/selftests/hid/Makefile
@@ -17,6 +17,8 @@ TEST_PROGS += hid-tablet.sh
 TEST_PROGS += hid-usb_crash.sh
 TEST_PROGS += hid-wacom.sh
 
+TEST_FILES := run-hid-tools-tests.sh
+
 CXX ?= $(CROSS_COMPILE)g++
 
 HOSTPKG_CONFIG := pkg-config
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] selftest: hid: add missing run-hid-tools-tests.sh
  2024-09-29  8:55 [PATCH] selftest: hid: add missing run-hid-tools-tests.sh Yun Lu
@ 2024-09-30  8:38 ` Benjamin Tissoires
  2024-09-30 20:57   ` Shuah Khan
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Tissoires @ 2024-09-30  8:38 UTC (permalink / raw)
  To: Yun Lu; +Cc: jikos, shuah, linux-kselftest, linux-kernel

On Sep 29 2024, Yun Lu wrote:
> The HID test cases actually run tests using the run-hid-tools-tests.sh
> script. However, if installed with "make install", the run-hid-tools-tests.sh
> script will not be copied over, resulting in the following error message.
> 
>   make -C tools/testing/selftests/ TARGETS=hid install \
>   	  INSTALL_PATH=$KSFT_INSTALL_PATH
> 
>   cd $KSFT_INSTALL_PATH
>   ./run_kselftest.sh -c hid
> 
> selftests: hid: hid-core.sh
> bash: ./run-hid-tools-tests.sh: No such file or directory
> 
> So add the run-hid-tools-tests.sh script to the TEST_FILES in the Makefile.
> 

I assume we probably also want:

Cc: stable@vger.kernel.org

> Signed-off-by: Yun Lu <luyun@kylinos.cn>

Not sure about the timing regarding our next PR to Linus, so in any cases:

Acked-by: Benjamin Tissoires <bentiss@kernel.org>

Cheers,
Benjamin

> ---
>  tools/testing/selftests/hid/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile
> index 72be55ac4bdf..38ae31bb07b5 100644
> --- a/tools/testing/selftests/hid/Makefile
> +++ b/tools/testing/selftests/hid/Makefile
> @@ -17,6 +17,8 @@ TEST_PROGS += hid-tablet.sh
>  TEST_PROGS += hid-usb_crash.sh
>  TEST_PROGS += hid-wacom.sh
>  
> +TEST_FILES := run-hid-tools-tests.sh
> +
>  CXX ?= $(CROSS_COMPILE)g++
>  
>  HOSTPKG_CONFIG := pkg-config
> -- 
> 2.27.0
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] selftest: hid: add missing run-hid-tools-tests.sh
  2024-09-30  8:38 ` Benjamin Tissoires
@ 2024-09-30 20:57   ` Shuah Khan
  2024-10-01  2:43     ` luyun
  0 siblings, 1 reply; 5+ messages in thread
From: Shuah Khan @ 2024-09-30 20:57 UTC (permalink / raw)
  To: Benjamin Tissoires, Yun Lu
  Cc: jikos, shuah, linux-kselftest, linux-kernel, Shuah Khan

On 9/30/24 02:38, Benjamin Tissoires wrote:
> On Sep 29 2024, Yun Lu wrote:
>> The HID test cases actually run tests using the run-hid-tools-tests.sh
>> script. However, if installed with "make install", the run-hid-tools-tests.sh
>> script will not be copied over, resulting in the following error message.
>>
>>    make -C tools/testing/selftests/ TARGETS=hid install \
>>    	  INSTALL_PATH=$KSFT_INSTALL_PATH
>>
>>    cd $KSFT_INSTALL_PATH
>>    ./run_kselftest.sh -c hid
>>
>> selftests: hid: hid-core.sh
>> bash: ./run-hid-tools-tests.sh: No such file or directory
>>
>> So add the run-hid-tools-tests.sh script to the TEST_FILES in the Makefile.
>>
> 
> I assume we probably also want:
> 
> Cc: stable@vger.kernel.org
> 
>> Signed-off-by: Yun Lu <luyun@kylinos.cn>
> 
> Not sure about the timing regarding our next PR to Linus, so in any cases:
> 
> Acked-by: Benjamin Tissoires <bentiss@kernel.org>

Thank you. This commit appears to be right one for Fixes tag?

Is this the right commit for Fixes tag:

Fixes: commit ffb85d5c9e80 ("selftests: hid: import hid-tools hid-core tests")

Will apply with this tag added to linux-kselftest fixes for next rc
once I get conformation.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] selftest: hid: add missing run-hid-tools-tests.sh
  2024-09-30 20:57   ` Shuah Khan
@ 2024-10-01  2:43     ` luyun
  2024-10-01 14:40       ` Shuah Khan
  0 siblings, 1 reply; 5+ messages in thread
From: luyun @ 2024-10-01  2:43 UTC (permalink / raw)
  To: Shuah Khan, Benjamin Tissoires
  Cc: jikos, shuah, linux-kselftest, linux-kernel


在 2024/10/1 04:57, Shuah Khan 写道:
> On 9/30/24 02:38, Benjamin Tissoires wrote:
>> On Sep 29 2024, Yun Lu wrote:
>>> The HID test cases actually run tests using the run-hid-tools-tests.sh
>>> script. However, if installed with "make install", the 
>>> run-hid-tools-tests.sh
>>> script will not be copied over, resulting in the following error 
>>> message.
>>>
>>>    make -C tools/testing/selftests/ TARGETS=hid install \
>>>          INSTALL_PATH=$KSFT_INSTALL_PATH
>>>
>>>    cd $KSFT_INSTALL_PATH
>>>    ./run_kselftest.sh -c hid
>>>
>>> selftests: hid: hid-core.sh
>>> bash: ./run-hid-tools-tests.sh: No such file or directory
>>>
>>> So add the run-hid-tools-tests.sh script to the TEST_FILES in the 
>>> Makefile.
>>>
>>
>> I assume we probably also want:
>>
>> Cc: stable@vger.kernel.org
>>
>>> Signed-off-by: Yun Lu <luyun@kylinos.cn>
>>
>> Not sure about the timing regarding our next PR to Linus, so in any 
>> cases:
>>
>> Acked-by: Benjamin Tissoires <bentiss@kernel.org>
>
> Thank you. This commit appears to be right one for Fixes tag?
>
> Is this the right commit for Fixes tag:
>
> Fixes: commit ffb85d5c9e80 ("selftests: hid: import hid-tools hid-core 
> tests")

Yes,  the run-hid-tools-tests.sh script has been introduced since commit 
ffb85d5c9e80,

but not added to TEST_FILES.

>
> Will apply with this tag added to linux-kselftest fixes for next rc
> once I get conformation.

So should I need to send a v2 patch to add the Fixes and Cc tags?


Thanks and best regards.

--Yun Lu

>
> thanks,
> -- Shuah

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] selftest: hid: add missing run-hid-tools-tests.sh
  2024-10-01  2:43     ` luyun
@ 2024-10-01 14:40       ` Shuah Khan
  0 siblings, 0 replies; 5+ messages in thread
From: Shuah Khan @ 2024-10-01 14:40 UTC (permalink / raw)
  To: luyun, Benjamin Tissoires
  Cc: jikos, shuah, linux-kselftest, linux-kernel, Shuah Khan

On 9/30/24 20:43, luyun wrote:
> 
> 在 2024/10/1 04:57, Shuah Khan 写道:
>> On 9/30/24 02:38, Benjamin Tissoires wrote:
>>> On Sep 29 2024, Yun Lu wrote:
>>>> The HID test cases actually run tests using the run-hid-tools-tests.sh
>>>> script. However, if installed with "make install", the run-hid-tools-tests.sh
>>>> script will not be copied over, resulting in the following error message.
>>>>
>>>>    make -C tools/testing/selftests/ TARGETS=hid install \
>>>>          INSTALL_PATH=$KSFT_INSTALL_PATH
>>>>
>>>>    cd $KSFT_INSTALL_PATH
>>>>    ./run_kselftest.sh -c hid
>>>>
>>>> selftests: hid: hid-core.sh
>>>> bash: ./run-hid-tools-tests.sh: No such file or directory
>>>>
>>>> So add the run-hid-tools-tests.sh script to the TEST_FILES in the Makefile.
>>>>
>>>
>>> I assume we probably also want:
>>>
>>> Cc: stable@vger.kernel.org
>>>
>>>> Signed-off-by: Yun Lu <luyun@kylinos.cn>
>>>
>>> Not sure about the timing regarding our next PR to Linus, so in any cases:
>>>
>>> Acked-by: Benjamin Tissoires <bentiss@kernel.org>
>>
>> Thank you. This commit appears to be right one for Fixes tag?
>>
>> Is this the right commit for Fixes tag:
>>
>> Fixes: commit ffb85d5c9e80 ("selftests: hid: import hid-tools hid-core tests")
> 
> Yes,  the run-hid-tools-tests.sh script has been introduced since commit ffb85d5c9e80,
> 
> but not added to TEST_FILES.
> 
>>
>> Will apply with this tag added to linux-kselftest fixes for next rc
>> once I get conformation.
> 
> So should I need to send a v2 patch to add the Fixes and Cc tags?
> 
> 

No need to send v2 - I added the Fixes tag and applied to linux-kselftest fixes
branch for next rc.

thanks,
-- Shuah


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-01 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-29  8:55 [PATCH] selftest: hid: add missing run-hid-tools-tests.sh Yun Lu
2024-09-30  8:38 ` Benjamin Tissoires
2024-09-30 20:57   ` Shuah Khan
2024-10-01  2:43     ` luyun
2024-10-01 14:40       ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox