* [Linux-kselftest-mirror] selftests: run all tests
@ 2018-01-15 14:59 bp
2018-01-15 14:59 ` Borislav Petkov
2018-01-16 6:10 ` mpe
0 siblings, 2 replies; 10+ messages in thread
From: bp @ 2018-01-15 14:59 UTC (permalink / raw)
Hi,
do we want something like that with which one can run all selftests
quickly?
Or is there a way already which I couldn't find?
---
diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile
index 5d4f10ac2af2..3ed42fa50acc 100644
--- a/tools/testing/selftests/x86/Makefile
+++ b/tools/testing/selftests/x86/Makefile
@@ -77,3 +77,8 @@ $(OUTPUT)/test_syscall_vdso_32: thunks_32.S
# state.
$(OUTPUT)/check_initial_reg_state_32: CFLAGS += -Wl,-ereal_start -static
$(OUTPUT)/check_initial_reg_state_64: CFLAGS += -Wl,-ereal_start -static
+
+run_all:
+ for f in $(TEST_PROGS); do \
+ $$f; \
+ done
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-15 14:59 [Linux-kselftest-mirror] selftests: run all tests bp
@ 2018-01-15 14:59 ` Borislav Petkov
2018-01-16 6:10 ` mpe
1 sibling, 0 replies; 10+ messages in thread
From: Borislav Petkov @ 2018-01-15 14:59 UTC (permalink / raw)
Hi,
do we want something like that with which one can run all selftests
quickly?
Or is there a way already which I couldn't find?
---
diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile
index 5d4f10ac2af2..3ed42fa50acc 100644
--- a/tools/testing/selftests/x86/Makefile
+++ b/tools/testing/selftests/x86/Makefile
@@ -77,3 +77,8 @@ $(OUTPUT)/test_syscall_vdso_32: thunks_32.S
# state.
$(OUTPUT)/check_initial_reg_state_32: CFLAGS += -Wl,-ereal_start -static
$(OUTPUT)/check_initial_reg_state_64: CFLAGS += -Wl,-ereal_start -static
+
+run_all:
+ for f in $(TEST_PROGS); do \
+ $$f; \
+ done
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-15 14:59 [Linux-kselftest-mirror] selftests: run all tests bp
2018-01-15 14:59 ` Borislav Petkov
@ 2018-01-16 6:10 ` mpe
2018-01-16 6:10 ` Michael Ellerman
2018-01-16 11:44 ` bp
1 sibling, 2 replies; 10+ messages in thread
From: mpe @ 2018-01-16 6:10 UTC (permalink / raw)
Borislav Petkov <bp at alien8.de> writes:
> Hi,
>
> do we want something like that with which one can run all selftests
> quickly?
>
> Or is there a way already which I couldn't find?
$ cd tools/testing/selftests/x86
$ make run_tests
Should work?
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-16 6:10 ` mpe
@ 2018-01-16 6:10 ` Michael Ellerman
2018-01-16 11:44 ` bp
1 sibling, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2018-01-16 6:10 UTC (permalink / raw)
Borislav Petkov <bp at alien8.de> writes:
> Hi,
>
> do we want something like that with which one can run all selftests
> quickly?
>
> Or is there a way already which I couldn't find?
$ cd tools/testing/selftests/x86
$ make run_tests
Should work?
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-16 6:10 ` mpe
2018-01-16 6:10 ` Michael Ellerman
@ 2018-01-16 11:44 ` bp
2018-01-16 11:44 ` Borislav Petkov
2018-01-16 11:54 ` bp
1 sibling, 2 replies; 10+ messages in thread
From: bp @ 2018-01-16 11:44 UTC (permalink / raw)
On Tue, Jan 16, 2018 at 05:10:25PM +1100, Michael Ellerman wrote:
> $ cd tools/testing/selftests/x86
> $ make run_tests
>
> Should work?
Ah, that was hidden in the included lib.mk, thanks.
I wonder if we should make it more user-friendly by adding a help target
like for the main Makefile...
Thx.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-16 11:44 ` bp
@ 2018-01-16 11:44 ` Borislav Petkov
2018-01-16 11:54 ` bp
1 sibling, 0 replies; 10+ messages in thread
From: Borislav Petkov @ 2018-01-16 11:44 UTC (permalink / raw)
On Tue, Jan 16, 2018@05:10:25PM +1100, Michael Ellerman wrote:
> $ cd tools/testing/selftests/x86
> $ make run_tests
>
> Should work?
Ah, that was hidden in the included lib.mk, thanks.
I wonder if we should make it more user-friendly by adding a help target
like for the main Makefile...
Thx.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-16 11:44 ` bp
2018-01-16 11:44 ` Borislav Petkov
@ 2018-01-16 11:54 ` bp
2018-01-16 11:54 ` Borislav Petkov
2018-01-23 7:11 ` mpe
1 sibling, 2 replies; 10+ messages in thread
From: bp @ 2018-01-16 11:54 UTC (permalink / raw)
On Tue, Jan 16, 2018 at 12:44:28PM +0100, Borislav Petkov wrote:
> Ah, that was hidden in the included lib.mk, thanks.
>
> I wonder if we should make it more user-friendly by adding a help target
> like for the main Makefile...
One more point:
What I do is copy the x86/ folder to a test box and run all tests there.
If the lib.mk is not copied, run_tests is missing....
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-16 11:54 ` bp
@ 2018-01-16 11:54 ` Borislav Petkov
2018-01-23 7:11 ` mpe
1 sibling, 0 replies; 10+ messages in thread
From: Borislav Petkov @ 2018-01-16 11:54 UTC (permalink / raw)
On Tue, Jan 16, 2018@12:44:28PM +0100, Borislav Petkov wrote:
> Ah, that was hidden in the included lib.mk, thanks.
>
> I wonder if we should make it more user-friendly by adding a help target
> like for the main Makefile...
One more point:
What I do is copy the x86/ folder to a test box and run all tests there.
If the lib.mk is not copied, run_tests is missing....
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-16 11:54 ` bp
2018-01-16 11:54 ` Borislav Petkov
@ 2018-01-23 7:11 ` mpe
2018-01-23 7:11 ` Michael Ellerman
1 sibling, 1 reply; 10+ messages in thread
From: mpe @ 2018-01-23 7:11 UTC (permalink / raw)
Borislav Petkov <bp at alien8.de> writes:
> On Tue, Jan 16, 2018 at 12:44:28PM +0100, Borislav Petkov wrote:
>> Ah, that was hidden in the included lib.mk, thanks.
>>
>> I wonder if we should make it more user-friendly by adding a help target
>> like for the main Makefile...
>
> One more point:
>
> What I do is copy the x86/ folder to a test box and run all tests there.
> If the lib.mk is not copied, run_tests is missing....
OK, that's not really supported I guess.
If you're happy building on your host system, you can do:
$ make -C tools/testing/selftests/ TARGETS=x86 install
And then you'll have:
$ find tools/testing/selftests/install/
tools/testing/selftests/install/
tools/testing/selftests/install/x86
tools/testing/selftests/install/x86/mpx-mini-test_64
tools/testing/selftests/install/x86/iopl_64
tools/testing/selftests/install/x86/sysret_rip_64
tools/testing/selftests/install/x86/protection_keys_64
tools/testing/selftests/install/x86/sysret_ss_attrs_64
tools/testing/selftests/install/x86/syscall_nt_64
tools/testing/selftests/install/x86/test_mremap_vdso_64
tools/testing/selftests/install/x86/ioperm_64
tools/testing/selftests/install/x86/ptrace_syscall_64
tools/testing/selftests/install/x86/sigreturn_64
tools/testing/selftests/install/x86/fsgsbase_64
tools/testing/selftests/install/x86/5lvl_64
tools/testing/selftests/install/x86/check_initial_reg_state_64
tools/testing/selftests/install/x86/ldt_gdt_64
tools/testing/selftests/install/x86/single_step_syscall_64
tools/testing/selftests/install/x86/test_vdso_64
tools/testing/selftests/install/run_kselftest.sh
You can rsync that wherever, and run it manually or with the
run_kselftest.sh script.
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Linux-kselftest-mirror] selftests: run all tests
2018-01-23 7:11 ` mpe
@ 2018-01-23 7:11 ` Michael Ellerman
0 siblings, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2018-01-23 7:11 UTC (permalink / raw)
Borislav Petkov <bp at alien8.de> writes:
> On Tue, Jan 16, 2018@12:44:28PM +0100, Borislav Petkov wrote:
>> Ah, that was hidden in the included lib.mk, thanks.
>>
>> I wonder if we should make it more user-friendly by adding a help target
>> like for the main Makefile...
>
> One more point:
>
> What I do is copy the x86/ folder to a test box and run all tests there.
> If the lib.mk is not copied, run_tests is missing....
OK, that's not really supported I guess.
If you're happy building on your host system, you can do:
$ make -C tools/testing/selftests/ TARGETS=x86 install
And then you'll have:
$ find tools/testing/selftests/install/
tools/testing/selftests/install/
tools/testing/selftests/install/x86
tools/testing/selftests/install/x86/mpx-mini-test_64
tools/testing/selftests/install/x86/iopl_64
tools/testing/selftests/install/x86/sysret_rip_64
tools/testing/selftests/install/x86/protection_keys_64
tools/testing/selftests/install/x86/sysret_ss_attrs_64
tools/testing/selftests/install/x86/syscall_nt_64
tools/testing/selftests/install/x86/test_mremap_vdso_64
tools/testing/selftests/install/x86/ioperm_64
tools/testing/selftests/install/x86/ptrace_syscall_64
tools/testing/selftests/install/x86/sigreturn_64
tools/testing/selftests/install/x86/fsgsbase_64
tools/testing/selftests/install/x86/5lvl_64
tools/testing/selftests/install/x86/check_initial_reg_state_64
tools/testing/selftests/install/x86/ldt_gdt_64
tools/testing/selftests/install/x86/single_step_syscall_64
tools/testing/selftests/install/x86/test_vdso_64
tools/testing/selftests/install/run_kselftest.sh
You can rsync that wherever, and run it manually or with the
run_kselftest.sh script.
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-01-23 7:11 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-15 14:59 [Linux-kselftest-mirror] selftests: run all tests bp
2018-01-15 14:59 ` Borislav Petkov
2018-01-16 6:10 ` mpe
2018-01-16 6:10 ` Michael Ellerman
2018-01-16 11:44 ` bp
2018-01-16 11:44 ` Borislav Petkov
2018-01-16 11:54 ` bp
2018-01-16 11:54 ` Borislav Petkov
2018-01-23 7:11 ` mpe
2018-01-23 7:11 ` Michael Ellerman
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).