Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1231281 > unrolled thread

[PATCH] kselftest: add cleankselftest rule

Started byWang Long <long.wanglong@huawei.com>
First post2015-09-23 11:40 +0200
Last post2015-10-02 16:20 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] kselftest: add cleankselftest rule Wang Long <long.wanglong@huawei.com> - 2015-09-23 11:40 +0200
    Re: [PATCH] kselftest: add cleankselftest rule Shuah Khan <shuahkh@osg.samsung.com> - 2015-09-30 15:40 +0200
    Re: [PATCH] kselftest: add cleankselftest rule Michael Ellerman <mpe@ellerman.id.au> - 2015-10-01 03:20 +0200
      Re: [PATCH] kselftest: add cleankselftest rule Shuah Khan <shuahkh@osg.samsung.com> - 2015-10-02 16:20 +0200

#1231281 — [PATCH] kselftest: add cleankselftest rule

FromWang Long <long.wanglong@huawei.com>
Date2015-09-23 11:40 +0200
Subject[PATCH] kselftest: add cleankselftest rule
Message-ID<qbOGR-bd-5@gated-at.bofh.it>
We use

    $make TARGETS="size timers" kselftest

to build and run selftests. but there is no rule
for us to clean the kselftest generated files.

This patch add the rules, for example:

	$ make TARGETS="size timers" cleankselftest

can clean all kselftst generated files.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 84f4b31..c25d139 100644
--- a/Makefile
+++ b/Makefile
@@ -1075,6 +1075,9 @@ PHONY += kselftest
 kselftest:
 	$(Q)$(MAKE) -C tools/testing/selftests run_tests
 
+cleankselftest:
+	$(Q)$(MAKE) -C tools/testing/selftests clean
+
 # ---------------------------------------------------------------------------
 # Modules
 
@@ -1282,6 +1285,7 @@ help:
 	@echo  '  kselftest       - Build and run kernel selftest (run as root)'
 	@echo  '                    Build, install, and boot kernel before'
 	@echo  '                    running kselftest on it'
+	@echo  '  cleankselftest  - Remove all generated kselftest files'
 	@echo  ''
 	@echo  'Kernel packaging:'
 	@$(MAKE) $(build)=$(package-dir) help
-- 
1.8.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1236297

FromShuah Khan <shuahkh@osg.samsung.com>
Date2015-09-30 15:40 +0200
Message-ID<qepLY-6qf-11@gated-at.bofh.it>
In reply to#1231281
On 09/23/2015 03:33 AM, Wang Long wrote:
> We use
> 
>     $make TARGETS="size timers" kselftest
> 
> to build and run selftests. but there is no rule
> for us to clean the kselftest generated files.
> 
> This patch add the rules, for example:
> 
> 	$ make TARGETS="size timers" cleankselftest
> 
> can clean all kselftst generated files.
> 
> Signed-off-by: Wang Long <long.wanglong@huawei.com>

Thanks. Applied to linux-kselftest next for 4.4

-- Shuah


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1236891

FromMichael Ellerman <mpe@ellerman.id.au>
Date2015-10-01 03:20 +0200
Message-ID<qeAHn-5op-3@gated-at.bofh.it>
In reply to#1231281
On Wed, 2015-09-23 at 09:33 +0000, Wang Long wrote:
> We use
> 
>     $make TARGETS="size timers" kselftest
> 
> to build and run selftests. but there is no rule
> for us to clean the kselftest generated files.
> 
> This patch add the rules, for example:
> 
> 	$ make TARGETS="size timers" cleankselftest

I think 'kselftest-clean' would be neater.

That way all the kselftests targets start with 'kselftest'.

cheers


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1238315

FromShuah Khan <shuahkh@osg.samsung.com>
Date2015-10-02 16:20 +0200
Message-ID<qf9lM-5Mt-19@gated-at.bofh.it>
In reply to#1236891
On 09/30/2015 07:17 PM, Michael Ellerman wrote:
> On Wed, 2015-09-23 at 09:33 +0000, Wang Long wrote:
>> We use
>>
>>     $make TARGETS="size timers" kselftest
>>
>> to build and run selftests. but there is no rule
>> for us to clean the kselftest generated files.
>>
>> This patch add the rules, for example:
>>
>> 	$ make TARGETS="size timers" cleankselftest
> 
> I think 'kselftest-clean' would be neater.
> 
> That way all the kselftests targets start with 'kselftest'.
> 

Good suggestion. Wang! Could you please send me updated patch
with this suggested change.

thanks,
-- Shuah


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web