How to run unit test after compilation

This plus the offical docs I linked to plus the code for a platform (e.g., platform-espressif32) plus the SCons documentation linked in the post.