test: detect number of cores with meson
authorAaron Conole <aconole@redhat.com>
Fri, 12 Apr 2019 16:21:41 +0000 (12:21 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Apr 2019 11:57:56 +0000 (13:57 +0200)
commitc70622ac6f72719ec3ba4a8c7824828fb2663192
tree08e88871924cc1791043d8cde75f20f2f2833cab
parent98e6329c800a198790fecaad7fe411ed7fafde27
test: detect number of cores with meson

The arguments being passed will cause failures on laptops that have,
for instance, 2 cores only.  Most of the tests don't require more
than a single core.  Some require multiple cores (but those tests
should be modified to 'SKIP' when the correct number of cores
aren't available).

The unit test results shouldn't be impacted by this change, but it
allows for a future enhancement to pass flags such as '--no-huge'.

Also include a fix to a reported issue with running on FreeBSD.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/meson.build