mk_moonunit_test — Define a MoonUnit test target
MODULES="... moonunit ..."
mk_moonunit_test
NAME=
name
libraries
...
NAME=
name
The name of the test target
HELP=
help
Message to display for the target when running make help
libraries
A list of libraries (as separate parameters) to run in target notation.
LIBRARIES=
libraries
An alternate way to specify the libraries using an internally-quoted list.
Defines a phony target with the given literal name which runs MoonUnit tests in the specified libraries.
To use this function, you must use first perform a configuration check
with mk_check_moonunit
. If you do not, or MoonUnit
is not found, this function will fail.
This function is a no-op when cross-compiling, or when the build system
has the MoonUnit libraries, headers, and stub generator, but lacks the
moonunit
binary, as tests cannot be run in these cases.
Sets result
to the generated phony target.