File tree Expand file tree Collapse file tree 9 files changed +19
-20
lines changed Expand file tree Collapse file tree 9 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 1
1
file (GLOB_RECURSE jsonrpcstub_source *.cpp )
2
2
file (GLOB_RECURSE libstubgen_source *.cpp )
3
- list (REMOVE_ITEM libstubgen_source main.cpp )
4
-
3
+ list (REMOVE_ITEM libstubgen_source "${CMAKE_CURRENT_SOURCE_DIR} /main.cpp" )
5
4
6
5
find_package (Argtable REQUIRED )
7
6
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ file(COPY ${test_specs} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
13
13
set (testlibs ${Boost_LIBRARIES} jsonrpccommon jsonrpcclient jsonrpcserver )
14
14
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} /src )
15
15
16
+ #add_definitions(-DBOOST_TEST_DYN_LINK)
17
+
16
18
IF (HTTP_CLIENT AND HTTP_SERVER )
17
19
add_definitions (-DHTTP_TESTING )
18
20
ENDIF ()
Original file line number Diff line number Diff line change
1
+ /* ************************************************************************
2
+ * libjson-rpc-cpp
3
+ *************************************************************************
4
+ * @file main.cpp
5
+ * @date 1/21/2015
6
+ * @author Peter Spiess-Knafl <[email protected] >
7
+ * @license See attached LICENSE.txt
8
+ ************************************************************************/
9
+
10
+ #define BOOST_TEST_MODULE " libjson-rpc-cpp test suite"
11
+ #define BOOST_TEST_DYN_LINK
12
+ #define BOOST_TEST_MAIN
13
+ #include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 7
7
* @license See attached LICENSE.txt
8
8
************************************************************************/
9
9
10
- #define BOOST_TEST_DYN_LINK
11
- #define BOOST_TEST_MODULE client
12
-
13
10
#include < boost/test/unit_test.hpp>
14
11
#include < jsonrpccpp/client.h>
15
12
#include " mockclientconnector.h"
Original file line number Diff line number Diff line change 13
13
#include < jsonrpccpp/common/specificationparser.h>
14
14
#include < jsonrpccpp/common/specificationwriter.h>
15
15
16
- #define BOOST_DYN_LINK
17
- #define BOOST_TEST_MODULE
18
-
19
16
using namespace jsonrpc ;
20
17
using namespace std ;
21
18
Original file line number Diff line number Diff line change 7
7
* @license See attached LICENSE.txt
8
8
************************************************************************/
9
9
10
- #include < boost/test/unit_test.hpp>
11
-
12
10
#ifdef HTTP_TESTING
13
- #define BOOST_TEST_MODULE connector_http
11
+ #include < boost/test/unit_test.hpp >
14
12
15
13
#include < jsonrpccpp/server/connectors/httpserver.h>
16
14
#include < jsonrpccpp/client/connectors/httpclient.h>
Original file line number Diff line number Diff line change 7
7
* @license See attached LICENSE.txt
8
8
************************************************************************/
9
9
10
- #include < boost/test/unit_test.hpp>
11
10
12
11
#ifdef INTEGRATION_TESTING
13
- #define BOOST_TEST_MODULE integration
14
-
12
+ #include < boost/test/unit_test.hpp>
15
13
16
14
#include < jsonrpccpp/server/connectors/httpserver.h>
17
15
#include < jsonrpccpp/client/connectors/httpclient.h>
Original file line number Diff line number Diff line change 11
11
#include " testserver.h"
12
12
#include " mockserverconnector.h"
13
13
14
- #define BOOST_TEST_DYN_LINK
15
- #define BOOST_TEST_MODULE server
16
-
17
14
using namespace jsonrpc ;
18
15
using namespace std ;
19
16
Original file line number Diff line number Diff line change 7
7
* @license See attached LICENSE.txt
8
8
************************************************************************/
9
9
10
- #include < boost/test/unit_test.hpp>
11
-
12
10
#ifdef STUBGEN_TESTING
13
- #define BOOST_TEST_MODULE stubgenerator
11
+ #include < boost/test/unit_test.hpp >
14
12
15
13
#include < jsonrpccpp/common/specificationparser.h>
16
14
#include < stubgenerator/server/cppserverstubgenerator.h>
You can’t perform that action at this time.
0 commit comments