* [PATCH] kbuild: devtest - new make target for build all and run tests
@ 2014-07-18 20:44 Shuah Khan
2014-07-18 21:06 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Shuah Khan @ 2014-07-18 20:44 UTC (permalink / raw)
To: mmarek, gregkh; +Cc: Shuah Khan, linux-kbuild, linux-kernel
Add a new devtest make target to enable developer testing. This
new target does full build (make all) and then runs selftests.
Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
---
Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Makefile b/Makefile
index f3c543d..1ef3128 100644
--- a/Makefile
+++ b/Makefile
@@ -1034,6 +1034,14 @@ headers_check: headers_install
$(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
# ---------------------------------------------------------------------------
+# Kernel devtest
+
+PHONY += devtest
+devtest:
+ make all
+ make -C tools/testing/selftests run_tests
+
+# ---------------------------------------------------------------------------
# Modules
ifdef CONFIG_MODULES
@@ -1236,6 +1244,9 @@ help:
@echo ' headerdep - Detect inclusion cycles in headers'
@$(MAKE) -f $(srctree)/scripts/Makefile.help checker-help
@echo ''
+ @echo 'Developer test'
+ @echo ' devtest - Build all and run tests'
+ @echo ''
@echo 'Kernel packaging:'
@$(MAKE) $(build)=$(package-dir) help
@echo ''
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-07-18 20:44 [PATCH] kbuild: devtest - new make target for build all and run tests Shuah Khan
@ 2014-07-18 21:06 ` Greg KH
2014-07-18 23:29 ` Sam Ravnborg
2014-08-06 13:51 ` Michal Marek
2 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2014-07-18 21:06 UTC (permalink / raw)
To: Shuah Khan; +Cc: mmarek, linux-kbuild, linux-kernel
On Fri, Jul 18, 2014 at 02:44:34PM -0600, Shuah Khan wrote:
> Add a new devtest make target to enable developer testing. This
> new target does full build (make all) and then runs selftests.
>
> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Nice to see this.
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-07-18 20:44 [PATCH] kbuild: devtest - new make target for build all and run tests Shuah Khan
2014-07-18 21:06 ` Greg KH
@ 2014-07-18 23:29 ` Sam Ravnborg
2014-07-19 0:13 ` Shuah Khan
2014-08-06 13:51 ` Michal Marek
2 siblings, 1 reply; 10+ messages in thread
From: Sam Ravnborg @ 2014-07-18 23:29 UTC (permalink / raw)
To: Shuah Khan; +Cc: mmarek, gregkh, linux-kbuild, linux-kernel
On Fri, Jul 18, 2014 at 02:44:34PM -0600, Shuah Khan wrote:
> Add a new devtest make target to enable developer testing. This
> new target does full build (make all) and then runs selftests.
>
> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
> ---
> Makefile | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index f3c543d..1ef3128 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1034,6 +1034,14 @@ headers_check: headers_install
> $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
>
> # ---------------------------------------------------------------------------
> +# Kernel devtest
> +
> +PHONY += devtest
> +devtest:
> + make all
> + make -C tools/testing/selftests run_tests
The name "devtest" does not give any hints that we are actually
running the suite of selftest programs.
Is it so because the plan is to extend devtest to cover more than just selftest?
If not please fix it so it is logical for the user what happens - in other
words name is selftest or something like that.
Sam
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-07-18 23:29 ` Sam Ravnborg
@ 2014-07-19 0:13 ` Shuah Khan
2014-08-06 13:41 ` Shuah Khan
0 siblings, 1 reply; 10+ messages in thread
From: Shuah Khan @ 2014-07-19 0:13 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: mmarek, gregkh, linux-kbuild, linux-kernel
On 07/18/2014 05:29 PM, Sam Ravnborg wrote:
> On Fri, Jul 18, 2014 at 02:44:34PM -0600, Shuah Khan wrote:
>> Add a new devtest make target to enable developer testing. This
>> new target does full build (make all) and then runs selftests.
>>
>> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
>> ---
>> Makefile | 11 +++++++++++
>> 1 file changed, 11 insertions(+)
>>
>> diff --git a/Makefile b/Makefile
>> index f3c543d..1ef3128 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -1034,6 +1034,14 @@ headers_check: headers_install
>> $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
>>
>> # ---------------------------------------------------------------------------
>> +# Kernel devtest
>> +
>> +PHONY += devtest
>> +devtest:
>> + make all
>> + make -C tools/testing/selftests run_tests
>
> The name "devtest" does not give any hints that we are actually
> running the suite of selftest programs.
>
> Is it so because the plan is to extend devtest to cover more than just selftest?
> If not please fix it so it is logical for the user what happens - in other
> words name is selftest or something like that.
>
Yes the intent is to cover more than just selftests in the future.
That is why the target is called devtest.
-- Shuah
--
Shuah Khan
Senior Linux Kernel Developer - Open Source Group
Samsung Research America(Silicon Valley)
shuah.kh@samsung.com | (970) 672-0658
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-07-19 0:13 ` Shuah Khan
@ 2014-08-06 13:41 ` Shuah Khan
0 siblings, 0 replies; 10+ messages in thread
From: Shuah Khan @ 2014-08-06 13:41 UTC (permalink / raw)
To: mmarek; +Cc: Sam Ravnborg, gregkh, linux-kbuild, linux-kernel
On 07/18/2014 06:13 PM, Shuah Khan wrote:
> On 07/18/2014 05:29 PM, Sam Ravnborg wrote:
>> On Fri, Jul 18, 2014 at 02:44:34PM -0600, Shuah Khan wrote:
>>> Add a new devtest make target to enable developer testing. This
>>> new target does full build (make all) and then runs selftests.
>>>
>>> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
>>> ---
>>> Makefile | 11 +++++++++++
>>> 1 file changed, 11 insertions(+)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index f3c543d..1ef3128 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -1034,6 +1034,14 @@ headers_check: headers_install
>>> $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm
>>> $(hdr-dst) HDRCHECK=1
>>>
Hi Michal,
Are you planning to include this patch in your 3.17 kbuild pull?
Keeping my fingers crossed. :)
-- Shuah
--
Shuah Khan
Senior Linux Kernel Developer - Open Source Group
Samsung Research America(Silicon Valley)
shuah.kh@samsung.com | (970) 672-0658
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-07-18 20:44 [PATCH] kbuild: devtest - new make target for build all and run tests Shuah Khan
2014-07-18 21:06 ` Greg KH
2014-07-18 23:29 ` Sam Ravnborg
@ 2014-08-06 13:51 ` Michal Marek
2014-08-06 14:04 ` Shuah Khan
2 siblings, 1 reply; 10+ messages in thread
From: Michal Marek @ 2014-08-06 13:51 UTC (permalink / raw)
To: Shuah Khan, gregkh; +Cc: linux-kbuild, linux-kernel
On 2014-07-18 22:44, Shuah Khan wrote:
> Add a new devtest make target to enable developer testing. This
> new target does full build (make all) and then runs selftests.
I agree with Sam that the name is rather ambiguous, but I can't suggest
a better alternative right now.
> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
> ---
> Makefile | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index f3c543d..1ef3128 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1034,6 +1034,14 @@ headers_check: headers_install
> $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
>
> # ---------------------------------------------------------------------------
> +# Kernel devtest
> +
> +PHONY += devtest
> +devtest:
> + make all
devtest: all
> + make -C tools/testing/selftests run_tests
Please use $(Q)$(MAKE), to keep the build silent by default and to
consistently use the same make program with the same options throughout
the build.
Thanks,
Michal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-08-06 13:51 ` Michal Marek
@ 2014-08-06 14:04 ` Shuah Khan
2014-08-06 14:06 ` Michal Marek
0 siblings, 1 reply; 10+ messages in thread
From: Shuah Khan @ 2014-08-06 14:04 UTC (permalink / raw)
To: Michal Marek, gregkh; +Cc: linux-kbuild, linux-kernel, Shuah Khan
On 08/06/2014 07:51 AM, Michal Marek wrote:
> On 2014-07-18 22:44, Shuah Khan wrote:
>> Add a new devtest make target to enable developer testing. This
>> new target does full build (make all) and then runs selftests.
>
> I agree with Sam that the name is rather ambiguous, but I can't suggest
> a better alternative right now.
Does kselftest or kern_selftest sound better?
>
>
>> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
>> ---
>> Makefile | 11 +++++++++++
>> 1 file changed, 11 insertions(+)
>>
>> diff --git a/Makefile b/Makefile
>> index f3c543d..1ef3128 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -1034,6 +1034,14 @@ headers_check: headers_install
>> $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
>>
>> # ---------------------------------------------------------------------------
>> +# Kernel devtest
>> +
>> +PHONY += devtest
>> +devtest:
>> + make all
>
> devtest: all
>
>
>> + make -C tools/testing/selftests run_tests
>
> Please use $(Q)$(MAKE), to keep the build silent by default and to
> consistently use the same make program with the same options throughout
> the build.
>
Working on the change - send v2 patch.
-- Shuah
--
Shuah Khan
Senior Linux Kernel Developer - Open Source Group
Samsung Research America(Silicon Valley)
shuah.kh@samsung.com | (970) 672-0658
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-08-06 14:04 ` Shuah Khan
@ 2014-08-06 14:06 ` Michal Marek
2014-08-06 14:31 ` Greg KH
0 siblings, 1 reply; 10+ messages in thread
From: Michal Marek @ 2014-08-06 14:06 UTC (permalink / raw)
To: shuah.kh, gregkh; +Cc: linux-kbuild, linux-kernel
On 2014-08-06 16:04, Shuah Khan wrote:
> On 08/06/2014 07:51 AM, Michal Marek wrote:
>> On 2014-07-18 22:44, Shuah Khan wrote:
>>> Add a new devtest make target to enable developer testing. This
>>> new target does full build (make all) and then runs selftests.
>>
>> I agree with Sam that the name is rather ambiguous, but I can't suggest
>> a better alternative right now.
>
> Does kselftest or kern_selftest sound better?
It does sound better to me than dev(ice)test, but I'm not a native
English speaker. Greg?
>>> Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
>>> ---
>>> Makefile | 11 +++++++++++
>>> 1 file changed, 11 insertions(+)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index f3c543d..1ef3128 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -1034,6 +1034,14 @@ headers_check: headers_install
>>> $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
>>>
>>> # ---------------------------------------------------------------------------
>>> +# Kernel devtest
>>> +
>>> +PHONY += devtest
>>> +devtest:
>>> + make all
>>
>> devtest: all
>>
>>
>>> + make -C tools/testing/selftests run_tests
>>
>> Please use $(Q)$(MAKE), to keep the build silent by default and to
>> consistently use the same make program with the same options throughout
>> the build.
>>
>
> Working on the change - send v2 patch.
Great!
Michal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-08-06 14:06 ` Michal Marek
@ 2014-08-06 14:31 ` Greg KH
2014-08-07 13:59 ` Shuah Khan
0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2014-08-06 14:31 UTC (permalink / raw)
To: Michal Marek; +Cc: shuah.kh, linux-kbuild, linux-kernel
On Wed, Aug 06, 2014 at 04:06:33PM +0200, Michal Marek wrote:
> On 2014-08-06 16:04, Shuah Khan wrote:
> > On 08/06/2014 07:51 AM, Michal Marek wrote:
> >> On 2014-07-18 22:44, Shuah Khan wrote:
> >>> Add a new devtest make target to enable developer testing. This
> >>> new target does full build (make all) and then runs selftests.
> >>
> >> I agree with Sam that the name is rather ambiguous, but I can't suggest
> >> a better alternative right now.
> >
> > Does kselftest or kern_selftest sound better?
>
> It does sound better to me than dev(ice)test, but I'm not a native
> English speaker. Greg?
Either is fine with me, but I don't think we have '_' as any make target
today, so perhaps "kselftest" is best?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kbuild: devtest - new make target for build all and run tests
2014-08-06 14:31 ` Greg KH
@ 2014-08-07 13:59 ` Shuah Khan
0 siblings, 0 replies; 10+ messages in thread
From: Shuah Khan @ 2014-08-07 13:59 UTC (permalink / raw)
To: Greg KH, Michal Marek
Cc: linux-kbuild, linux-kernel,
sam@ravnborg.org >> Sam Ravnborg
On 08/06/2014 08:31 AM, Greg KH wrote:
> On Wed, Aug 06, 2014 at 04:06:33PM +0200, Michal Marek wrote:
>> On 2014-08-06 16:04, Shuah Khan wrote:
>>> On 08/06/2014 07:51 AM, Michal Marek wrote:
>>>> On 2014-07-18 22:44, Shuah Khan wrote:
>>>>> Add a new devtest make target to enable developer testing. This
>>>>> new target does full build (make all) and then runs selftests.
>>>>
>>>> I agree with Sam that the name is rather ambiguous, but I can't suggest
>>>> a better alternative right now.
>>>
>>> Does kselftest or kern_selftest sound better?
>>
>> It does sound better to me than dev(ice)test, but I'm not a native
>> English speaker. Greg?
>
> Either is fine with me, but I don't think we have '_' as any make target
> today, so perhaps "kselftest" is best?
>
> thanks,
>
> greg k-h
>
Patch v2 is on its way. kselftest is the new target. It does sound lot
better than devtest :)
-- Shuah
--
Shuah Khan
Senior Linux Kernel Developer - Open Source Group
Samsung Research America(Silicon Valley)
shuah.kh@samsung.com | (970) 672-0658
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-08-07 13:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 20:44 [PATCH] kbuild: devtest - new make target for build all and run tests Shuah Khan
2014-07-18 21:06 ` Greg KH
2014-07-18 23:29 ` Sam Ravnborg
2014-07-19 0:13 ` Shuah Khan
2014-08-06 13:41 ` Shuah Khan
2014-08-06 13:51 ` Michal Marek
2014-08-06 14:04 ` Shuah Khan
2014-08-06 14:06 ` Michal Marek
2014-08-06 14:31 ` Greg KH
2014-08-07 13:59 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox