summaryrefslogtreecommitdiff
path: root/libdbpp/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests')
-rw-r--r--libdbpp/unittests/Jamfile.jam30
m---------libdbpp/unittests/libdbpp-sqlite0
2 files changed, 30 insertions, 0 deletions
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