ninja: add support for build-time tests

Also: `with-tests`