summaryrefslogtreecommitdiff
path: root/server/src/templatelist.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/templatelist.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/templatelist.cc')
-rw-r--r--server/src/templatelist.cc17
1 files changed, 12 insertions, 5 deletions
diff --git a/server/src/templatelist.cc b/server/src/templatelist.cc
index c7a951c..7d19bfb 100644
--- a/server/src/templatelist.cc
+++ b/server/src/templatelist.cc
@@ -58,11 +58,19 @@ void TemplateList::addFile(std::string file)
}
#ifdef TEST_TEMPLATELIST
+//deps: entitylist.cc versionstr.cc exception.cc inotify.cc mutex.cc debug.cc log.cc templateheaderparser.cc saxparser.cc
+//cflags: -I.. $(EXPAT_CFLAGS) $(PTHREAD_CFLAGS)
+//libs: $(EXPAT_LIBS) $(PTHREAD_LIBS)
+#include <test.h>
#define TEMPLATEDIR "/home" // We assume this directory exists and does not contain any xml files!
-int main()
-{
+TEST_BEGIN;
+
+// TODO: Put some testcode here (see test.h for usable macros).
+TEST_TRUE(false, "No tests yet!");
+
+/*
// Test sorting
TemplateList lst(TEMPLATEDIR);
@@ -119,8 +127,7 @@ int main()
}
return 1;
onandon:
-
- return 0;
-}
+ */
+TEST_END;
#endif/*TEST_TEMPLATELIST*/