Sometimes a project wants to run tests as part of the build. SCons isn't natively set up to run the generated binaries and evaluate their results. It's possibly better to do this externally - have a separate script to drive the testing, as part of a CI process. But it might be useful to show how to set this up to happen within SCons.