Merge branch 'dev.test_suite' into dev

This commit is contained in:
2016-07-04 19:34:17 +01:00
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
-I ./include -std=c++11
-I ./include -I ./external/Catch/include/ -std=c++11
+6 -5
View File
@@ -26,7 +26,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CONCATENATOR_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
set(CONCATENATOR_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
set(CONCATENATOR_TEST_DIR ${PROJECT_SOURCE_DIR}/tests)
set(CONCATENATOR_TEST_DIR ${PROJECT_SOURCE_DIR}/test)
set(CONCATENATOR_SOURCE_FILES
${CONCATENATOR_SOURCE_DIR}/Concatenator.cpp
@@ -42,7 +42,8 @@ set(CONCATENATOR_HEADER_FILES
${CONCATENATOR_INCLUDE_DIR}/Logger.h
)
set(CONCATENATOR_TEST_SOURCES
${CONCATENATOR_TEST_DIR}/Concatenator_Basic_Tests.cpp
${CONCATENATOR_TEST_DIR}/Concatenator_Test.cpp
${CONCATENATOR_TEST_DIR}/Basic_Tests.cpp
)
include_directories(${CONCATENATOR_INCLUDE_DIR})
@@ -83,8 +84,8 @@ if(BUILD_TESTS)
endif()
add_executable(Concatenator_Basic_Tests ${CONCATENATOR_TEST_SOURCES})
target_link_libraries(Concatenator_Basic_Tests Catch)
add_test(NAME TestBase COMMAND Concatenator_Base_Test)
add_executable(Concatenator_Test ${CONCATENATOR_TEST_SOURCES})
target_link_libraries(Concatenator_Test Catch)
add_test(NAME TestBase COMMAND Concatenator_Test)
endif()
+1
View File
@@ -0,0 +1 @@
#include "catch.hpp"
@@ -1,2 +1,4 @@
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch.hpp>
View File