diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | libdbpp/unittests/Jamfile.jam | 30 | ||||
m--------- | libdbpp/unittests/libdbpp-sqlite | 0 |
3 files changed, 33 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index 71c0288..502fbf9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "libdbpp/unittests/libdbpp-mysql"] path = libdbpp/unittests/libdbpp-mysql url = ssh://git.randomdan.homeip.net/var/git/libdbpp-mysql +[submodule "libdbpp/unittests/libdbpp-sqlite"] + path = libdbpp/unittests/libdbpp-sqlite + url = ssh://git.randomdan.homeip.net/var/git/libdbpp-sqlite diff --git a/libdbpp/unittests/Jamfile.jam b/libdbpp/unittests/Jamfile.jam index 9338ae2..3bbd473 100644 --- a/libdbpp/unittests/Jamfile.jam +++ b/libdbpp/unittests/Jamfile.jam @@ -7,6 +7,7 @@ lib pq : : : : <linkflags>"-L`pg_config --libdir`" ; lib mysqlclient : : : : <include>/usr/include/mysql ; +lib libsqlite : : <name>sqlite3 ; lib boost_date_time ; lib boost_system ; lib boost_utf : : <name>boost_unit_test_framework : : <toolset>tidy:<xcheckxx>hicpp-* ; @@ -77,6 +78,20 @@ lib dbpp-local-mysql : <library>..//dbppcore ; +lib dbpp-local-sqlite : + [ glob libdbpp-sqlite/libsqlitepp/*.cpp ] : + <library>../..//glibmm + <library>libsqlite + <library>..//adhocutil + <library>..//dbppcore + <library>boost_date_time + <library>boost_system + : : + <include>libdbpp-sqlite/libsqlitepp + <library>../..//glibmm + <library>..//dbppcore + ; + run testPatch.cpp : : @@ -167,3 +182,18 @@ run <library>..//stdc++fs <library>boost_system ; + +run + libdbpp-sqlite/libsqlitepp/unittests/testsqlite.cpp + : : + libdbpp-sqlite/libsqlitepp/unittests/sqliteschema.sql + : + <define>ROOT=\"$(me)/libdbpp-sqlite/libsqlitepp/unittests\" + <define>BOOST_TEST_DYN_LINK + <library>dbpp-local-sqlite + <library>..//dbpptestcore + <library>..//adhocutil + <library>boost_utf + <library>..//stdc++fs + <library>boost_system + ; diff --git a/libdbpp/unittests/libdbpp-sqlite b/libdbpp/unittests/libdbpp-sqlite new file mode 160000 +Subproject ef16da27477a2a234cab8aed1e072555d6bb410 |