linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: Add a selftests_run target
@ 2016-01-28  8:20 Borislav Petkov
       [not found] ` <1453969215-26532-1-git-send-email-bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Borislav Petkov @ 2016-01-28  8:20 UTC (permalink / raw)
  To: linux-api-u79uwXL29TY76Z2rM5mHXA; +Cc: LKML

From: Borislav Petkov <bp-l3A5Bk7waGM@public.gmane.org>

With it, you can do

$ make tools/selftests_run

from the toplevel kernel repo and it'll run all selftests. Don't forget
the -j.

Signed-off-by: Borislav Petkov <bp-l3A5Bk7waGM@public.gmane.org>
---
 tools/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/Makefile b/tools/Makefile
index 6339f6ac3ccb..1e64385ff97a 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -73,6 +73,9 @@ perf: FORCE
 selftests: FORCE
 	$(call descend,testing/$@)
 
+selftests_run:
+	$(call descend,testing/selftests run_tests)
+
 turbostat x86_energy_perf_policy: FORCE
 	$(call descend,power/x86/$@)
 
-- 
2.3.5

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

* Re: [PATCH] tools: Add a selftests_run target
       [not found] ` <1453969215-26532-1-git-send-email-bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org>
@ 2016-01-28 21:22   ` Michael Ellerman
       [not found]     ` <1454016130.25145.1.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2016-01-28 21:22 UTC (permalink / raw)
  To: Borislav Petkov, linux-api-u79uwXL29TY76Z2rM5mHXA; +Cc: LKML

On Thu, 2016-01-28 at 09:20 +0100, Borislav Petkov wrote:
> From: Borislav Petkov <bp-l3A5Bk7waGM@public.gmane.org>
> 
> With it, you can do
> 
> $ make tools/selftests_run
> 
> from the toplevel kernel repo and it'll run all selftests. Don't forget
> the -j.

OK. You can already do:

  $ make kselftest


Is this better for some reason?

cheers

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

* Re: [PATCH] tools: Add a selftests_run target
       [not found]     ` <1454016130.25145.1.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
@ 2016-01-28 21:30       ` Borislav Petkov
  0 siblings, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2016-01-28 21:30 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linux-api-u79uwXL29TY76Z2rM5mHXA, LKML

On Fri, Jan 29, 2016 at 08:22:10AM +1100, Michael Ellerman wrote:
> OK. You can already do:
> 
>   $ make kselftest
> 
> 
> Is this better for some reason?

No, I missed that there is even one in the top-level Makefile. And doing

make tools/help

shows only the "selftests" one. I should add kselftest to
tools/Makefile's help instead.

Thanks.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

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

end of thread, other threads:[~2016-01-28 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28  8:20 [PATCH] tools: Add a selftests_run target Borislav Petkov
     [not found] ` <1453969215-26532-1-git-send-email-bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org>
2016-01-28 21:22   ` Michael Ellerman
     [not found]     ` <1454016130.25145.1.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
2016-01-28 21:30       ` Borislav Petkov

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).