-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also support Boost 1.65 and fix tester
Somehow the runner was segfaulting with the CMake steps. Didn't want to find out why, instead used the default runner main with auto test suites/cases.
- Loading branch information
Showing
8 changed files
with
40 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu:18.04 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN \ | ||
apt update; \ | ||
apt -qqyy install build-essential git cmake libboost-all-dev | ||
|
||
RUN git clone https://github.com/sehe/msghub --depth 1 -b cmake | ||
WORKDIR /msghub | ||
RUN cmake . && make | ||
|
||
CMD ["/bin/bash", "-c", "(./examples/server & ./examples/client ; kill %1; wait)"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK) | ||
ADD_EXECUTABLE(tester | ||
client_onserverfailure.cpp | ||
connect.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,4 @@ | ||
#include <boost/test/unit_test.hpp> | ||
|
||
using namespace boost; | ||
using namespace unit_test; | ||
|
||
void test_create(); | ||
void test_connect(); | ||
|
||
void test_subscribe(); | ||
void test_unsubscribe(); | ||
|
||
void test_client_onserverfailure(); | ||
void test_server_oncleintfailure(); | ||
#define BOOST_TEST_MAIN [0/18287] | ||
#define BOOST_TEST_MODULE msghub | ||
|
||
void test_toobigmsg(); | ||
void test_emptymsg(); | ||
|
||
test_suite* init_unit_test_suite(int, char**) | ||
{ | ||
test_suite *test = BOOST_TEST_SUITE("messagehub test"); | ||
|
||
test->add(BOOST_TEST_CASE(&test_create)); | ||
test->add(BOOST_TEST_CASE(&test_connect)); | ||
test->add(BOOST_TEST_CASE(&test_subscribe)); | ||
//test->add(BOOST_TEST_CASE(&test_unsubscribe)); | ||
//test->add(BOOST_TEST_CASE(&test_client_onserverfailure)); | ||
//test->add(BOOST_TEST_CASE(&test_server_oncleintfailure)); | ||
//test->add(BOOST_TEST_CASE(&test_toobigmsg)); | ||
//test->add(BOOST_TEST_CASE(&test_emptymsg)); | ||
|
||
return test; | ||
} | ||
#include <boost/test/unit_test.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters