summaryrefslogtreecommitdiff
path: root/tests/SConscript
blob: bba628c01e4993105f7721f70e359010bb86efbe (plain)
1
2
3
4
5
6
7
8
9
10
11
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',
	'../src/player.cpp', '../src/client.cpp', '../src/connection.cpp', '../src/hand.cpp', '../src/score.cpp'] + Glob('../common/*.cpp'))