From 652c312aef1c87f2e5ebab00399ca3f35da568ff Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 13:09:49 +0000 Subject: Add libdbpp-sqlite submodule --- .gitmodules | 3 +++ libdbpp/unittests/Jamfile.jam | 30 ++++++++++++++++++++++++++++++ libdbpp/unittests/libdbpp-sqlite | 1 + 3 files changed, 34 insertions(+) create mode 160000 libdbpp/unittests/libdbpp-sqlite 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 : : : : "-L`pg_config --libdir`" ; lib mysqlclient : : : : /usr/include/mysql ; +lib libsqlite : : sqlite3 ; lib boost_date_time ; lib boost_system ; lib boost_utf : : boost_unit_test_framework : : tidy:hicpp-* ; @@ -77,6 +78,20 @@ lib dbpp-local-mysql : ..//dbppcore ; +lib dbpp-local-sqlite : + [ glob libdbpp-sqlite/libsqlitepp/*.cpp ] : + ../..//glibmm + libsqlite + ..//adhocutil + ..//dbppcore + boost_date_time + boost_system + : : + libdbpp-sqlite/libsqlitepp + ../..//glibmm + ..//dbppcore + ; + run testPatch.cpp : : @@ -167,3 +182,18 @@ run ..//stdc++fs boost_system ; + +run + libdbpp-sqlite/libsqlitepp/unittests/testsqlite.cpp + : : + libdbpp-sqlite/libsqlitepp/unittests/sqliteschema.sql + : + ROOT=\"$(me)/libdbpp-sqlite/libsqlitepp/unittests\" + BOOST_TEST_DYN_LINK + dbpp-local-sqlite + ..//dbpptestcore + ..//adhocutil + boost_utf + ..//stdc++fs + boost_system + ; diff --git a/libdbpp/unittests/libdbpp-sqlite b/libdbpp/unittests/libdbpp-sqlite new file mode 160000 index 0000000..ef16da2 --- /dev/null +++ b/libdbpp/unittests/libdbpp-sqlite @@ -0,0 +1 @@ +Subproject commit ef16da27477a2a234cab8aed1e072555d6bb410e -- cgit v1.2.3