Skip to content

Commit

Permalink
Merge branch 'release/v0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Spiess-Knafl committed Jan 21, 2015
2 parents 443d7c9 + 4807525 commit 8363ed5
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 20 deletions.
3 changes: 1 addition & 2 deletions src/stubgenerator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
file(GLOB_RECURSE jsonrpcstub_source *.cpp)
file(GLOB_RECURSE libstubgen_source *.cpp)
list(REMOVE_ITEM libstubgen_source main.cpp)

list(REMOVE_ITEM libstubgen_source "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp")

find_package(Argtable REQUIRED)

Expand Down
2 changes: 2 additions & 0 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ file(COPY ${test_specs} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
set(testlibs ${Boost_LIBRARIES} jsonrpccommon jsonrpcclient jsonrpcserver)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)

#add_definitions(-DBOOST_TEST_DYN_LINK)

IF(HTTP_CLIENT AND HTTP_SERVER)
add_definitions(-DHTTP_TESTING)
ENDIF()
Expand Down
13 changes: 13 additions & 0 deletions src/test/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file main.cpp
* @date 1/21/2015
* @author Peter Spiess-Knafl <[email protected]>
* @license See attached LICENSE.txt
************************************************************************/

#define BOOST_TEST_MODULE "libjson-rpc-cpp test suite"
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
3 changes: 0 additions & 3 deletions src/test/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
* @license See attached LICENSE.txt
************************************************************************/

#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE client

#include <boost/test/unit_test.hpp>
#include <jsonrpccpp/client.h>
#include "mockclientconnector.h"
Expand Down
3 changes: 0 additions & 3 deletions src/test/test_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#include <jsonrpccpp/common/specificationparser.h>
#include <jsonrpccpp/common/specificationwriter.h>

#define BOOST_DYN_LINK
#define BOOST_TEST_MODULE

using namespace jsonrpc;
using namespace std;

Expand Down
4 changes: 1 addition & 3 deletions src/test/test_connector_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
* @license See attached LICENSE.txt
************************************************************************/

#include <boost/test/unit_test.hpp>

#ifdef HTTP_TESTING
#define BOOST_TEST_MODULE connector_http
#include <boost/test/unit_test.hpp>

#include <jsonrpccpp/server/connectors/httpserver.h>
#include <jsonrpccpp/client/connectors/httpclient.h>
Expand Down
4 changes: 1 addition & 3 deletions src/test/test_integration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
* @license See attached LICENSE.txt
************************************************************************/

#include <boost/test/unit_test.hpp>

#ifdef INTEGRATION_TESTING
#define BOOST_TEST_MODULE integration

#include <boost/test/unit_test.hpp>

#include <jsonrpccpp/server/connectors/httpserver.h>
#include <jsonrpccpp/client/connectors/httpclient.h>
Expand Down
3 changes: 0 additions & 3 deletions src/test/test_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
#include "testserver.h"
#include "mockserverconnector.h"

#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE server

using namespace jsonrpc;
using namespace std;

Expand Down
4 changes: 1 addition & 3 deletions src/test/test_stubgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
* @license See attached LICENSE.txt
************************************************************************/

#include <boost/test/unit_test.hpp>

#ifdef STUBGEN_TESTING
#define BOOST_TEST_MODULE stubgenerator
#include <boost/test/unit_test.hpp>

#include <jsonrpccpp/common/specificationparser.h>
#include <stubgenerator/server/cppserverstubgenerator.h>
Expand Down

0 comments on commit 8363ed5

Please sign in to comment.