Import('env') test_bld = Builder( action = '$SOURCE -e stdout && touch $TARGET', emitter = lambda target, source, env: (target[0].name + '.passed', env.Program(target[0].name + '.test', source)) ) env.Append(BUILDERS = {'Test' : test_bld}) env.Test('calculate_score', ['calculate_score.cpp', 'test_framework.cpp', '../player.cpp', '../client.cpp', '../connection.cpp', '../hand.cpp', '../score.cpp'] + Glob('../../common/*.cpp'))