meson.eclass: fix tests
authorWilliam Hubbs <williamh@gentoo.org>
Sun, 2 Jun 2019 16:29:07 +0000 (11:29 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Sun, 2 Jun 2019 16:47:11 +0000 (11:47 -0500)
commitfe02c66d4b7638575778dcb7cbeb09c42a83c764
tree5f6c1bb4fbfafd99dce17caac03ec2d6f22f455f
parentacaeab588bd506e8ecbd0b858695b2ae08a2b810
meson.eclass: fix tests

- use "meson test" to run tests instead of "eninja test"
- calculate --num-processes based on ninjaopts or makeopts in the "meson test"
  call.
- allow meson_src_test to accept arguments with the emesontestargs array
  or passed in the call like meson_src_configure

Closes: https://bugs.gentoo.org/680010
Signed-off-by: William Hubbs <williamh@gentoo.org>
eclass/meson.eclass