summaryrefslogtreecommitdiff
path: root/server/src/queryparser.cc
diff options
context:
space:
mode:
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*/