From 89a5778dd7258e87777e0cb2fcef96506153b5d1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 7 Jan 2017 16:58:26 +0000 Subject: Build a local version of the postgresql connector for unit testing with --- libdbpp/unittests/Jamfile.jam | 32 ++++++++++++++++++++++++++++---- 1 file 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 : : boost_unit_test_framework ; lib IceUtil ; @@ -24,6 +27,27 @@ run testConnection ; +alias libpq : : : : + "-I`pg_config --includedir`" + "-L`pg_config --libdir`" + pq + ; + +lib dbpp-local-postgresql : + [ glob ../../libpqpp/*.cpp ] : + ../..//glibmm + libpq + ..//adhocutil + ..//dbppcore + boost_date_time + boost_system + : : + ../../libpqpp + "-I`pg_config --includedir`" + ../..//glibmm + ..//dbppcore + ; + run testPatch.cpp : : @@ -35,7 +59,7 @@ run BOOST_TEST_DYN_LINK ..//dbppcore ..//adhocutil - ../../libpqpp//dbpp-postgresql + dbpp-local-postgresql boost_utf : testPatch @@ -48,7 +72,7 @@ run BOOST_TEST_DYN_LINK ..//dbppcore ..//adhocutil - ../../libpqpp//dbpp-postgresql + dbpp-local-postgresql boost_utf : testConnectionPool @@ -61,7 +85,7 @@ run BOOST_TEST_DYN_LINK ..//dbppcore ..//adhocutil - ../../libpqpp//dbpp-postgresql + dbpp-local-postgresql boost_utf IceUtil util.sql @@ -76,7 +100,7 @@ run BOOST_TEST_DYN_LINK ..//dbppcore ..//adhocutil - ../../libpqpp//dbpp-postgresql + dbpp-local-postgresql boost_utf badMock.sql : -- cgit v1.2.3