mosys: Run unittests with platform_test.

- This should allow the unittests to run on the actual platform.
Before, we were using a workaround where the tests ran on the
machine building mosys. This should provide better coverage.
See for more discussion.

- This CL makes small changes to unittests and meson so they
can work with platform_test.

TEST=FEATURES='test noclean' emerge-coral mosys (a x86 device)
TEST=FEATURES='test noclean' emerge-elm mosys (an ARM device)

Change-Id: I067bfa9cffcccd1fc373d48cf2dd0cb7c4ebcbb5
Commit-Ready: Andrew Lamb <>
Tested-by: Andrew Lamb <>
Reviewed-by: Mike Frysinger <>
3 files changed