embeddedartistry / libc

libc targeted for embedded systems usage. Reduced set of functionality (due to embedded nature). Chosen for portability and quick bringup.
MIT License
524 stars 67 forks source link

Feature Request: Add Meson project option to disable (enable?) testing #192

Closed fghzxm closed 11 months ago

fghzxm commented 12 months ago

CMake provides a built-in variable LIBC_TESTING_IS_ENABLED to control whether to generate test targets (which depend on cmocka, which in turn needs to be downloaded). However, Meson doesn't provide an equivalent built-in option, and test targets that are defined are always generated.

I suggest we add a project option enable-testing to the Meson project that controls whether test targets are generated (and whether cmocka is downloaded).

(Question: Should this issue be reported to embeddedartistry/meson instead?)

phillipjohnston commented 12 months ago

Totally agree this should exist, I'll get something released this week.

phillipjohnston commented 11 months ago

Option is enable-testing, defaults to true.