summaryrefslogtreecommitdiff
path: root/libmysqlpp/unittests/testmysqle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/unittests/testmysqle.cpp')
-rw-r--r--libmysqlpp/unittests/testmysqle.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/libmysqlpp/unittests/testmysqle.cpp b/libmysqlpp/unittests/testmysqle.cpp
new file mode 100644
index 0000000..0d1defb
--- /dev/null
+++ b/libmysqlpp/unittests/testmysqle.cpp
@@ -0,0 +1,16 @@
+#define BOOST_TEST_MODULE TestEmbeddedMySQL
+#include <boost/test/unit_test.hpp>
+
+#include <embeddedmy-mock.h>
+#include <definedDirs.h>
+
+class StandardMockDatabase : public MySQL::Embedded::Mock {
+ public:
+ StandardMockDatabase() : MySQL::Embedded::Mock("mysqlmock", {
+ rootDir / "mysqlschema.sql" })
+ {
+ }
+};
+
+#include "testMain.cpp"
+