test: use MESON_TESTTHREADS to determine the number of jobs
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Aug 2021 02:03:23 +0000 (12:03 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Aug 2021 22:14:29 +0000 (22:14 +0000)
commitb925b55634cd1c8cc0365c9fc6894f243b627b5e
treec2c1b7895a00b728897988d96dd9cf255b1bd344
parent375618b81bf04788f214a8c32f9a50538f829e75
test: use MESON_TESTTHREADS to determine the number of jobs

meson uses MESON_TESTTHREADS to determine the number of parallel test
jobs. Since our main test suite cannot be run in parallel anyway, use
that same variable in litest to determine how many jobs we should fork
off.

In the CI pipeline, we can use FDO_CI_CONCURRENT to pass that down so we
don't end up running a billion jobs on a test runner.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci/meson-build.sh
test/litest.c