summaryrefslogtreecommitdiff
path: root/server/src/queryhandlerpentominos.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-17 11:00:14 +0000
committerdeva <deva>2011-02-17 11:00:14 +0000
commitdb144840aba95affb3a6b5b2536059f49f0677ff (patch)
tree1c397a20aa5745c6bbb5dee6a4409f58c4542e87 /server/src/queryhandlerpentominos.cc
parentc8651b8c89673300477ab86962640c93216ea306 (diff)
Rewrite of all old tests to new unittest framework. Also some work on testdb; more to come...
Diffstat (limited to 'server/src/queryhandlerpentominos.cc')
-rw-r--r--server/src/queryhandlerpentominos.cc19
1 files changed, 15 insertions, 4 deletions
diff --git a/server/src/queryhandlerpentominos.cc b/server/src/queryhandlerpentominos.cc
index 41573e5..8000721 100644
--- a/server/src/queryhandlerpentominos.cc
+++ b/server/src/queryhandlerpentominos.cc
@@ -237,9 +237,20 @@ QueryResult QueryHandlerPentominos::exec(Query &query)
}
#ifdef TEST_QUERYHANDLERPENTOMINOS
+//deps: artefact.cc configuration.cc debug.cc log.cc
+//cflags: -I.. $(ATF_CFLAGS)
+//libs: $(ATF_LIBS)
+#include <test.h>
+
+#include "tcpsocket.h"
+
+TEST_BEGIN;
+
+// TODO: Put some testcode here (see test.h for usable macros).
+TEST_TRUE(false, "No tests yet!");
+
+#if 0
-int main()
-{
#ifdef WITHOUT_PENTOMINOS
printf("The project need to be configured for use of Pentominos in order to run this test.\n");
return 1;
@@ -261,8 +272,8 @@ int main()
q1.attributes["device_type"] = "lensmeter";
QueryResult res = qh.exec(q1);
res.print();
+#endif
- return 0;
-}
+TEST_END;
#endif/*TEST_QUERYHANDLERPENTOMINOS*/