summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-07 16:58:26 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-08 19:33:31 +0000
commit89a5778dd7258e87777e0cb2fcef96506153b5d1 (patch)
treeb1d1f2e6f3c24f0ff7817de7f42b6633dc133b62
parentAdd doxygen comments for command options (diff)
downloadlibdbpp-89a5778dd7258e87777e0cb2fcef96506153b5d1.tar.bz2
libdbpp-89a5778dd7258e87777e0cb2fcef96506153b5d1.tar.xz
libdbpp-89a5778dd7258e87777e0cb2fcef96506153b5d1.zip
Build a local version of the postgresql connector for unit testing with
-rw-r--r--libdbpp/unittests/Jamfile.jam32
1 files changed, 28 insertions, 4 deletions
diff --git a/libdbpp/unittests/Jamfile.jam b/libdbpp/unittests/Jamfile.jam
index 45c069d..54c4afc 100644
--- a/libdbpp/unittests/Jamfile.jam
+++ b/libdbpp/unittests/Jamfile.jam
@@ -2,6 +2,9 @@ import testing ;
path-constant me : . ;
+lib pq ;
+lib boost_date_time ;
+lib boost_system ;
lib boost_utf : : <name>boost_unit_test_framework ;
lib IceUtil ;
@@ -24,6 +27,27 @@ run
testConnection
;
+alias libpq : : : :
+ <cflags>"-I`pg_config --includedir`"
+ <linkflags>"-L`pg_config --libdir`"
+ <library>pq
+ ;
+
+lib dbpp-local-postgresql :
+ [ glob ../../libpqpp/*.cpp ] :
+ <library>../..//glibmm
+ <library>libpq
+ <library>..//adhocutil
+ <library>..//dbppcore
+ <library>boost_date_time
+ <library>boost_system
+ : :
+ <include>../../libpqpp
+ <cflags>"-I`pg_config --includedir`"
+ <library>../..//glibmm
+ <library>..//dbppcore
+ ;
+
run
testPatch.cpp
: :
@@ -35,7 +59,7 @@ run
<define>BOOST_TEST_DYN_LINK
<library>..//dbppcore
<library>..//adhocutil
- <library>../../libpqpp//dbpp-postgresql
+ <library>dbpp-local-postgresql
<library>boost_utf
:
testPatch
@@ -48,7 +72,7 @@ run
<define>BOOST_TEST_DYN_LINK
<library>..//dbppcore
<library>..//adhocutil
- <library>../../libpqpp//dbpp-postgresql
+ <library>dbpp-local-postgresql
<library>boost_utf
:
testConnectionPool
@@ -61,7 +85,7 @@ run
<define>BOOST_TEST_DYN_LINK
<library>..//dbppcore
<library>..//adhocutil
- <library>../../libpqpp//dbpp-postgresql
+ <library>dbpp-local-postgresql
<library>boost_utf
<library>IceUtil
<dependency>util.sql
@@ -76,7 +100,7 @@ run
<define>BOOST_TEST_DYN_LINK
<library>..//dbppcore
<library>..//adhocutil
- <library>../../libpqpp//dbpp-postgresql
+ <library>dbpp-local-postgresql
<library>boost_utf
<dependency>badMock.sql
: