Browse Source

- added testsuite for payload

master
parent
commit
01d03c3266
3 changed files with 10 additions and 1 deletions
  1. +1
    -0
      CMakeLists.txt
  2. +7
    -1
      test/CMakeLists.txt
  3. +2
    -0
      test/test.cpp

+ 1
- 0
CMakeLists.txt View File

@@ -5,3 +5,4 @@ add_subdirectory(src)
add_subdirectory(test)
enable_testing()
add_test(NAME Mytest COMMAND Mytest)
add_test(NAME TestPayload COMMAND TestPayload)

+ 7
- 1
test/CMakeLists.txt View File

@@ -1,11 +1,17 @@
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
find_package(Boost COMPONENTS filesystem unit_test_framework REQUIRED)
message(status "** Boost Include: ${Boost_INCLUDE_DIR}")
message(status "** Boost Libraries: ${Boost_LIBRARY_DIRS}")
message(status "** Boost Libraries: ${Boost_LIBRARIES}")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
set (libcbag_dir "../../libcbag")
include_directories("${libcbag_dir}/src/include")
message(status "** libcbag Include: ${libcbag_dir}")
message(status "** libcbag Libraries: ${libcbag_BINARY_DIR}")
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
add_definitions(-DBOOST_TEST_DYN_LINK)
add_executable(Mytest test.cpp)
add_executable(TestPayload test_payload.cpp)
target_link_libraries(Mytest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
target_link_libraries(TestPayload ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} libcbag)



+ 2
- 0
test/test.cpp View File

@@ -3,5 +3,7 @@
namespace utf = boost::unit_test;

BOOST_AUTO_TEST_CASE(test1){BOOST_TEST(true);}
BOOST_AUTO_TEST_CASE(test2){BOOST_TEST(true);}
BOOST_AUTO_TEST_CASE(test3){BOOST_CHECK(true);}



Loading…
Cancel
Save