meson unittest

sfp sfp at hush.ai
Sun Jan 5 23:52:24 UTC 2025


Anyone have a good way of yanking out all `unittest { ... }` 
blocks from a library compiled using Meson? It would be nice to 
approximate what dub does.

Meson has mentions this trick in its help docs 
(https://mesonbuild.com/D.html#using-embedded-unittests) but it 
isn't particularly useful. I have a library built from some 
source files, some of which contain `unittest` functions, and 
separate executables which link this library in. I might be using 
it the wrong way, but this trick did nothing useful for me...


More information about the Digitalmars-d-learn mailing list