Re: [PATCH 04/10] test-lib: Replace uses of $(expr ...) by POSIX shell features.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 18, 2009, 22:28 UTC
- Message-ID
- <alpine.DEB.1.00.0903182319180.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <680eb7fed78dc2ae0268f9b3adcd5978aed3ebcf.1237410682.git.j6t@kdbg.org>
Hi,
On Wed, 18 Mar 2009, Johannes Sixt wrote:
Show 7 quoted lines
> In particular:
>
> - Test case counting can be achieved by arithmetic expansion.
>
> - The name of the test, e.g. t1234, can be computed with ${0%%} and ${0##}.
>
> Signed-off-by: Johannes Sixt <j6t@kdbg.org>I guess this makes the tests less slow on Windows? Do you have numbers?
FWIW I run the tests on Windows with -j10 these days, and they take about 15 minutes on a quad core 3GHz machine (which I may use from time to time; the machine is not mine, otherwise it would run Linux).
Ciao, Dscho