summaryrefslogtreecommitdiff
path: root/server/src/queryparser.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/queryparser.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/queryparser.cc')
-rw-r--r--server/src/queryparser.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/server/src/queryparser.cc b/server/src/queryparser.cc
index d8f36ee..3d228f6 100644
--- a/server/src/queryparser.cc
+++ b/server/src/queryparser.cc
@@ -88,9 +88,13 @@ void QueryParser::parseError(const char *buf, size_t len, std::string error, int
}
#ifdef TEST_QUERYPARSER
+//deps: saxparser.cc debug.cc log.cc utf8.cc exception.cc
+//cflags: -I.. $(EXPAT_CFLAGS)
+//libs: $(EXPAT_LIBS)
+#include <test.h>
#include <string.h>
-
+/*
static char xml[] =
"<?xml version='1.0' encoding='UTF-8'?>\n"
"<results>\n"
@@ -142,9 +146,13 @@ static std::string loadresultstring(QueryResult &res, std::string group = "")
return s;
}
+*/
+TEST_BEGIN;
-int main()
-{
+// TODO: Put some testcode here (see test.h for usable macros).
+TEST_TRUE(false, "No tests yet!");
+
+/*
// Parse something
{
QueryParser parser;
@@ -163,8 +171,7 @@ int main()
}
return 1;
weitergehen:
-
- return 0;
-}
+*/
+TEST_END;
#endif/*TEST_QUERYPARSER*/