mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: test not using cppzmq
Solution: add dependency on cppzmq
This commit is contained in:
parent
e5ca9a0a95
commit
07b583a99a
@ -18,7 +18,7 @@ addons:
|
||||
env:
|
||||
matrix:
|
||||
# - BUILD_TYPE=cmake DRAFT=enabled
|
||||
- BUILD_TYPE=cmake
|
||||
- BUILD_TYPE=cmake ZMQ_VERSION=4.2.5
|
||||
|
||||
matrix:
|
||||
include:
|
||||
@ -41,4 +41,4 @@ script:
|
||||
- ./ci_build.sh
|
||||
|
||||
after_success:
|
||||
- coveralls --root . -E ".*external.*" -E ".*CMakeFiles.*" -E ".*tests/"
|
||||
- coveralls --root . -E ".*external.*" -E ".*CMakeFiles.*" -E ".*tests/" -E ".*libzmq/"
|
||||
|
@ -7,9 +7,9 @@ install_zeromq() {
|
||||
|
||||
mkdir libzmq
|
||||
cd libzmq
|
||||
curl -L https://github.com/zeromq/libzmq/releases/download/v${ZMQ_VERSION}/zeromq-${ZMQ_VERSION}.tar.gz >zeromq.tar.gz
|
||||
curl -L https://github.com/zeromq/libzmq/archive/v${ZMQ_VERSION}.tar.gz >zeromq.tar.gz
|
||||
tar -xvzf zeromq.tar.gz
|
||||
cd zeromq-${ZMQ_VERSION}
|
||||
cd libzmq-${ZMQ_VERSION}
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
@ -21,7 +21,7 @@ fetch_googletest(
|
||||
${PROJECT_BINARY_DIR}/googletest
|
||||
)
|
||||
|
||||
#find_package(cppzmq)
|
||||
find_package(cppzmq)
|
||||
|
||||
enable_testing()
|
||||
|
||||
@ -33,6 +33,7 @@ add_executable(
|
||||
target_link_libraries(
|
||||
unit_tests
|
||||
gtest_main
|
||||
libzmq
|
||||
)
|
||||
|
||||
add_test(
|
||||
|
@ -1,8 +1,9 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include <zmq.hpp>
|
||||
|
||||
TEST(example, add)
|
||||
TEST(create_context, add)
|
||||
{
|
||||
double res;
|
||||
res = 1.0 + 2.0;
|
||||
ASSERT_NEAR(res, 3.0, 1.0e-11);
|
||||
zmq::context_t context;
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user