summaryrefslogtreecommitdiff
path: root/tests/SConscript
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-25 12:54:59 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-25 12:54:59 +0100
commitfae209a9e93400c3a2072befda9c820634cf9278 (patch)
tree2d69e2c75fff0e08468c168f773abbc939a2ff03 /tests/SConscript
parent94a1189d757f0269ac081ad2d750152e30564986 (diff)
Restructured repository.HEADmaster
Diffstat (limited to 'tests/SConscript')
-rw-r--r--tests/SConscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/SConscript b/tests/SConscript
new file mode 100644
index 0000000..bba628c
--- /dev/null
+++ b/tests/SConscript
@@ -0,0 +1,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'))