# -*- python -*- # test/unit/example Import( 'testEnv' ) testEnv.UnitTest( 'example', ['factorial.cpp', 'fixture.cpp'] ) testEnv.UnitTest( 'example2.py' )
This is sufficient to compile the C program, and run both unit tests. If there was an install step, it wouldn't require any additional code in this file. Build and test can proceed in parallel--- the python test can run while the C test is compiling. And it took less than a full afternoon to get it working.
Creating build scripts with a real programming language rocks.