diff mbox series

[08/29] strace: parallelize ptest

Message ID 20230917093901.428214-8-alex@linutronix.de
State Accepted, archived
Commit 0c632b418a785494318d9f375a07d879772e8ced
Headers show
Series [01/29] sstate.bbclass: setscene_depvalid(): do not exclude shadow-native from task dependency resolution | expand

Commit Message

Alexander Kanavin Sept. 17, 2023, 9:38 a.m. UTC
strace is one of the slowest tests otherwise (can take 40 minutes or more),
and this brings it to under 10 minutes \0/

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/recipes-devtools/strace/strace/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Khem Raj Sept. 17, 2023, 4:52 p.m. UTC | #1
On Sun, Sep 17, 2023 at 2:39 AM Alexander Kanavin
<alex.kanavin@gmail.com> wrote:
>
> strace is one of the slowest tests otherwise (can take 40 minutes or more),
> and this brings it to under 10 minutes \0/

This is a good fix. Next in the slowest line is perhaps lttng-tools.

core-image-ptest-strace () - Ran 5 tests in 2213.594s
core-image-ptest-strace - OK - All required tests passed (successes=3,
skipped=1, failures=0, errors=0)

core-image-ptest-lttng-tools () - Ran 5 tests in 2086.423s
core-image-ptest-lttng-tools - OK - All required tests passed
(successes=3, skipped=1, failures=0, errors=0)

>
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
>  meta/recipes-devtools/strace/strace/run-ptest | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest
> index 86daed92201..1224229e8fc 100755
> --- a/meta/recipes-devtools/strace/strace/run-ptest
> +++ b/meta/recipes-devtools/strace/strace/run-ptest
> @@ -3,7 +3,7 @@
>  set -u
>
>  export TIMEOUT_DURATION=240
> -make -B -C tests -k test-suite.log
> +make -j4 -B -C tests -k test-suite.log
>  res=$?
>  if [ $res -ne 0 ]; then
>      cat tests/test-suite.log
> --
> 2.30.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#187781): https://lists.openembedded.org/g/openembedded-core/message/187781
> Mute This Topic: https://lists.openembedded.org/mt/101411933/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Alexander Kanavin Sept. 17, 2023, 7:33 p.m. UTC | #2
On Sun, 17 Sept 2023 at 18:53, Khem Raj <raj.khem@gmail.com> wrote:
> core-image-ptest-lttng-tools () - Ran 5 tests in 2086.423s
> core-image-ptest-lttng-tools - OK - All required tests passed
> (successes=3, skipped=1, failures=0, errors=0)

I tried to see if parallel testing can be enabled easily in
lttng-tools, but the tests started stepping on each other, bady.
Perhaps we can revisit once upstream makes a new major version, so the
code we use and test is again closer to what they work on.

Alex
diff mbox series

Patch

diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest
index 86daed92201..1224229e8fc 100755
--- a/meta/recipes-devtools/strace/strace/run-ptest
+++ b/meta/recipes-devtools/strace/strace/run-ptest
@@ -3,7 +3,7 @@ 
 set -u
 
 export TIMEOUT_DURATION=240
-make -B -C tests -k test-suite.log
+make -j4 -B -C tests -k test-suite.log
 res=$?
 if [ $res -ne 0 ]; then
     cat tests/test-suite.log