Skip to contentSkip to conversation

tools: Add a selftests_run target

PATCH In review Borislav Petkov 2 participants 3 messages Jan 28, 2016 ABI/API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: Add a selftests_run target

From: Borislav Petkov <[email protected]>

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.

---
 tools/Makefile | 3 +++
 1 file changed, 3 insertions(+)
tools/Makefile +3 -0
index 6339f6ac3ccb..1e64385ff97a 100644
@@ -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/$@)
 
Signature · 1 line
2.3.5
#1 lore raw
Quoted 8 lines · Borislav Petkov

From: Borislav Petkov <[email protected]>

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

#2 lore raw
Quoted 6 lines · Michael Ellerman

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.

Signature · 4 lines
Regards/Gruss,
    Boris.

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