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


Groups > linux.kernel > #1320383 > unrolled thread

[PATCH] tools: Add a selftests_run target

Started byBorislav Petkov <bp@alien8.de>
First post2016-01-28 09:30 +0100
Last post2016-01-28 22:40 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] tools: Add a selftests_run target Borislav Petkov <bp@alien8.de> - 2016-01-28 09:30 +0100
    Re: [PATCH] tools: Add a selftests_run target Michael Ellerman <michael@ellerman.id.au> - 2016-01-28 22:30 +0100
      Re: [PATCH] tools: Add a selftests_run target Borislav Petkov <bp@alien8.de> - 2016-01-28 22:40 +0100

#1320383 — [PATCH] tools: Add a selftests_run target

FromBorislav Petkov <bp@alien8.de>
Date2016-01-28 09:30 +0100
Subject[PATCH] tools: Add a selftests_run target
Message-ID<qVQ7M-FX-1@gated-at.bofh.it>
From: Borislav Petkov <bp@suse.de>

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@suse.de>
---
 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

[toc] | [next] | [standalone]


#1321071

FromMichael Ellerman <michael@ellerman.id.au>
Date2016-01-28 22:30 +0100
Message-ID<qW2iC-UG-25@gated-at.bofh.it>
In reply to#1320383
On Thu, 2016-01-28 at 09:20 +0100, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
> 
> 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

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


#1321076

FromBorislav Petkov <bp@alien8.de>
Date2016-01-28 22:40 +0100
Message-ID<qW2si-Yt-5@gated-at.bofh.it>
In reply to#1321071
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web