summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 13:09:49 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 17:05:54 +0000
commit652c312aef1c87f2e5ebab00399ca3f35da568ff (patch)
treebc07b0835a664042b2fa733d3f383f005a6210a1
parentTidy link of libpq (diff)
downloadlibdbpp-652c312aef1c87f2e5ebab00399ca3f35da568ff.tar.bz2
libdbpp-652c312aef1c87f2e5ebab00399ca3f35da568ff.tar.xz
libdbpp-652c312aef1c87f2e5ebab00399ca3f35da568ff.zip
Add libdbpp-sqlite submodule
-rw-r--r--.gitmodules3
-rw-r--r--libdbpp/unittests/Jamfile.jam30
m---------libdbpp/unittests/libdbpp-sqlite0
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