summaryrefslogtreecommitdiff
path: root/server/src/widgetgenerator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/widgetgenerator.cc')
-rw-r--r--server/src/widgetgenerator.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc
index 7a39190..0c24999 100644
--- a/server/src/widgetgenerator.cc
+++ b/server/src/widgetgenerator.cc
@@ -103,13 +103,19 @@ std::string widgetgenerator(std::string cpr, std::string sessionid,
}
#ifdef TEST_WIDGETGENERATOR
+//deps: log.cc mutex.cc debug.cc xml_encode_decode.cc widgetvalue.cc luaquerymapper.cc configuration.cc exception.cc
+//cflags: -I.. $(PTHREAD_CFLAGS) $(LUA_CFLAGS)
+//libs: $(PTHREAD_LIBS) $(LUA_LIBS)
+#include <test.h>
#include <time.h>
#define PATIENTID "1234567890"
-int main()
-{
+TEST_BEGIN;
+
+TEST_TRUE(false, "No tests yet!");
+/*
time_t now = time(NULL);
printf("Test pretty printer:\n");
@@ -218,7 +224,7 @@ int main()
printf("[%s]\n", result.c_str());
if(result == " <lineedit name=\"mywidget\" value=\"mymapvalue\" prefilled=\"testsource\"/>\n") return 1;
}
- return 0;
-}
+*/
+TEST_END;
#endif/*TEST_WIDGETGENERATOR*/