Re: [PATCH] tests/avocado: using several workers while testing

2022-11-22 Thread bakulinm
Version of patch that uses sh script to parse MAKEFLAGS and set --nrunner-max-parallel-tasks accordingly. As already mentioned, works with Make 4.2 or newer, otherwise only single thread or all cores can be used. diff --git a/tests/Makefile.include b/tests/Makefile.include index 9422ddaece..ee05

Re: [PATCH] tests/avocado: using several workers while testing

2022-11-16 Thread bakulinm
Valid point, thank you. I can see three options what to do: 1) Ignore older version of make and assume that 4.2 or newer is used (4.1 is in Ubuntu 18.04 that is no longer supported as a build platform as I was told; 20.04 has 4.2). In this case make provides number of jobs in $MAKEFLAGS and thi

Re: [PATCH] tests/avocado: using several workers while testing

2022-11-16 Thread Daniel P . Berrangé
On Wed, Nov 16, 2022 at 02:37:43PM +, bakul...@ispras.ru wrote: > Valid point, thank you. > > I can see three options what to do: > e1) Ignore older version of make and assume that 4.2 or newer is used > (4.1 is in Ubuntu 18.04 that is no longer supported as a build platform > as I was told; 2

Re: [PATCH] tests/avocado: using several workers while testing

2022-11-16 Thread Daniel P . Berrangé
On Wed, Nov 16, 2022 at 04:48:10PM +0300, Pavel Dovgalyuk wrote: > From: bakulinm > > make check-avocado takes a lot of time, and avocado since version 91 has > multithreaded mode for running several tests simultaneously. > This patch allows to run "make check-avocado -j" to use all cores or, > f

[PATCH] tests/avocado: using several workers while testing

2022-11-16 Thread Pavel Dovgalyuk
From: bakulinm make check-avocado takes a lot of time, and avocado since version 91 has multithreaded mode for running several tests simultaneously. This patch allows to run "make check-avocado -j" to use all cores or, for example, "make check-avocado -j4" to select number of workers to use. By d