summaryrefslogtreecommitdiff
path: root/server/tests/SConscript
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-11 08:54:52 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-11 08:54:52 +0100
commit1de8e6eed4c3b5d48e2175e660b50840996cbf63 (patch)
tree06be3b6e9a2e7315a79415f7117d7837b5809e9f /server/tests/SConscript
parent92c5013d6fcc63ecf615d1e0e2acfe570175a6de (diff)
Added unit test framework.
Diffstat (limited to 'server/tests/SConscript')
-rw-r--r--server/tests/SConscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/tests/SConscript b/server/tests/SConscript
new file mode 100644
index 0000000..b6c3bea
--- /dev/null
+++ b/server/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',
+ '../player.cpp', '../client.cpp', '../connection.cpp', '../hand.cpp', '../score.cpp'] + Glob('../../common/*.cpp'))