diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | libdbpp/unittests/Jamfile.jam | 32 | ||||
m--------- | libdbpp/unittests/libdbpp-odbc | 0 |
3 files changed, 35 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index 502fbf9..c2332fd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "libdbpp/unittests/libdbpp-sqlite"] path = libdbpp/unittests/libdbpp-sqlite url = ssh://git.randomdan.homeip.net/var/git/libdbpp-sqlite +[submodule "libdbpp/unittests/libdbpp-odbc"] + path = libdbpp/unittests/libdbpp-odbc + url = ssh://git.randomdan.homeip.net/var/git/libdbpp-odbc diff --git a/libdbpp/unittests/Jamfile.jam b/libdbpp/unittests/Jamfile.jam index 3bbd473..805863e 100644 --- a/libdbpp/unittests/Jamfile.jam +++ b/libdbpp/unittests/Jamfile.jam @@ -8,6 +8,7 @@ lib pq : : : : ; lib mysqlclient : : : : <include>/usr/include/mysql ; lib libsqlite : : <name>sqlite3 ; +lib odbc ; lib boost_date_time ; lib boost_system ; lib boost_utf : : <name>boost_unit_test_framework : : <toolset>tidy:<xcheckxx>hicpp-* ; @@ -92,6 +93,21 @@ lib dbpp-local-sqlite : <library>..//dbppcore ; +lib dbpp-local-odbc : + [ glob libdbpp-odbc/libodbcpp/*.cpp ] : + <library>../..//glibmm + <library>odbc + <library>..//adhocutil + <library>..//dbppcore + <library>boost_date_time + <library>boost_system + <toolset>tidy:<xcheckxx>hicpp-signed-bitwise + : : + <include>libdbpp-odbc/libodbcpp + <library>../..//glibmm + <library>..//dbppcore + ; + run testPatch.cpp : : @@ -197,3 +213,19 @@ run <library>..//stdc++fs <library>boost_system ; + +run + libdbpp-odbc/libodbcpp/unittests/testodbc.cpp + : : + libdbpp-odbc/libodbcpp/unittests/odbcschema.sql + : + <define>ROOT=\"$(me)/libdbpp-odbc/libodbcpp/unittests\" + <define>BOOST_TEST_DYN_LINK + <library>dbpp-local-odbc + <library>..//dbpptestcore + <library>..//adhocutil + <library>boost_utf + <library>..//stdc++fs + <library>boost_system + ; + diff --git a/libdbpp/unittests/libdbpp-odbc b/libdbpp/unittests/libdbpp-odbc new file mode 160000 +Subproject 881033464c13398f78be306d8d785616f094789 |