From 62cc388a919b131c3dcd34db1e7b8d895ce1fa19 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 15:30:24 +0000 Subject: Add libdbpp-odbc submodule --- .gitmodules | 3 +++ libdbpp/unittests/Jamfile.jam | 32 ++++++++++++++++++++++++++++++++ libdbpp/unittests/libdbpp-odbc | 1 + 3 files changed, 36 insertions(+) create mode 160000 libdbpp/unittests/libdbpp-odbc 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 : : : : /usr/include/mysql ; lib libsqlite : : sqlite3 ; +lib odbc ; lib boost_date_time ; lib boost_system ; lib boost_utf : : boost_unit_test_framework : : tidy:hicpp-* ; @@ -92,6 +93,21 @@ lib dbpp-local-sqlite : ..//dbppcore ; +lib dbpp-local-odbc : + [ glob libdbpp-odbc/libodbcpp/*.cpp ] : + ../..//glibmm + odbc + ..//adhocutil + ..//dbppcore + boost_date_time + boost_system + tidy:hicpp-signed-bitwise + : : + libdbpp-odbc/libodbcpp + ../..//glibmm + ..//dbppcore + ; + run testPatch.cpp : : @@ -197,3 +213,19 @@ run ..//stdc++fs boost_system ; + +run + libdbpp-odbc/libodbcpp/unittests/testodbc.cpp + : : + libdbpp-odbc/libodbcpp/unittests/odbcschema.sql + : + ROOT=\"$(me)/libdbpp-odbc/libodbcpp/unittests\" + BOOST_TEST_DYN_LINK + dbpp-local-odbc + ..//dbpptestcore + ..//adhocutil + boost_utf + ..//stdc++fs + boost_system + ; + diff --git a/libdbpp/unittests/libdbpp-odbc b/libdbpp/unittests/libdbpp-odbc new file mode 160000 index 0000000..8810334 --- /dev/null +++ b/libdbpp/unittests/libdbpp-odbc @@ -0,0 +1 @@ +Subproject commit 881033464c13398f78be306d8d785616f0947896 -- cgit v1.2.3