diff TestFramework.hpp @ 0:a3834af36579

Working with memory backend.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Mon, 20 Aug 2012 15:49:48 +0200
parents
children 2833b7f8884a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TestFramework.hpp	Mon Aug 20 15:49:48 2012 +0200
@@ -0,0 +1,27 @@
+#ifndef TESTFRAMEWORK_HPP
+#define TESTFRAMEWORK_HPP
+
+/*
+  This header sets up everything for the testframework e.g. switches
+  between headerincludes and dynamic linking
+ */
+
+//This should really be defined from the build framework
+#define BOOSTTEST_HEADER_INCLUDE
+
+#define BOOST_TEST_MAIN
+
+#ifdef BOOSTTEST_HEADER_INCLUDE
+#include <boost/test/included/unit_test.hpp>
+#else
+#include <boost/test/unit_test.hpp>
+#endif
+
+//Here comes our helperfunctions
+#include <QtCore/QString>
+inline std::ostream& operator<<(std::ostream& out, const QString& rhs)
+{
+  return out << rhs.toStdString();
+}
+
+#endif //TESTFRAMEWORK_HPP