diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | libdbpp/unittests/Jamfile.jam | 30 | ||||
m--------- | libdbpp/unittests/libdbpp-mysql | 0 |
3 files changed, 33 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index 6a0359d..d136501 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "libdbpp/unittests/pq"] path = libdbpp/unittests/libdbpp-postgresql url = http://git.randomdan.homeip.net/git/libdbpp-postgresql +[submodule "libdbpp/unittests/libdbpp-mysql"] + path = libdbpp/unittests/libdbpp-mysql + url = ssh://git.randomdan.homeip.net/var/git/libdbpp-mysql diff --git a/libdbpp/unittests/Jamfile.jam b/libdbpp/unittests/Jamfile.jam index d80f623..a8fca66 100644 --- a/libdbpp/unittests/Jamfile.jam +++ b/libdbpp/unittests/Jamfile.jam @@ -3,6 +3,7 @@ import testing ; path-constant me : . ; lib pq ; +lib mysqlclient : : : : <include>/usr/include/mysql ; lib boost_date_time ; lib boost_system ; lib boost_utf : : <name>boost_unit_test_framework ; @@ -65,6 +66,20 @@ lib dbpp-local-postgresql : <library>..//dbppcore ; +lib dbpp-local-mysql : + [ glob libdbpp-mysql/libmysqlpp/*.cpp ] : + <library>../..//glibmm + <library>mysqlclient + <library>..//adhocutil + <library>..//dbppcore + <library>boost_date_time + <library>boost_system + : : + <include>libdbpp-mysql/libmysqlpp + <library>../..//glibmm + <library>..//dbppcore + ; + run testPatch.cpp : : @@ -139,3 +154,18 @@ run <library>..//stdc++fs <library>boost_system ; + +run + libdbpp-mysql/libmysqlpp/unittests/testmysql.cpp + : : + libdbpp-mysql/libmysqlpp/unittests/mysqlschema.sql + : + <define>ROOT=\"$(me)/libdbpp-mysql/libmysqlpp/unittests\" + <define>BOOST_TEST_DYN_LINK + <library>dbpp-local-mysql + <library>..//dbpptestcore + <library>..//adhocutil + <library>boost_utf + <library>..//stdc++fs + <library>boost_system + ; diff --git a/libdbpp/unittests/libdbpp-mysql b/libdbpp/unittests/libdbpp-mysql new file mode 160000 +Subproject a84a696a3812446a33761cc0b1669d0f5bbf933 |