renamed test files/folder. Added basic tests file for creating initial tests
This commit is contained in:
@@ -1 +1 @@
|
|||||||
-I ./include -std=c++11
|
-I ./include -I ./external/Catch/include/ -std=c++11
|
||||||
|
|||||||
+6
-5
@@ -26,7 +26,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|||||||
|
|
||||||
set(CONCATENATOR_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
|
set(CONCATENATOR_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
|
||||||
set(CONCATENATOR_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
|
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
|
set(CONCATENATOR_SOURCE_FILES
|
||||||
${CONCATENATOR_SOURCE_DIR}/Concatenator.cpp
|
${CONCATENATOR_SOURCE_DIR}/Concatenator.cpp
|
||||||
@@ -42,7 +42,8 @@ set(CONCATENATOR_HEADER_FILES
|
|||||||
${CONCATENATOR_INCLUDE_DIR}/Logger.h
|
${CONCATENATOR_INCLUDE_DIR}/Logger.h
|
||||||
)
|
)
|
||||||
set(CONCATENATOR_TEST_SOURCES
|
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})
|
include_directories(${CONCATENATOR_INCLUDE_DIR})
|
||||||
@@ -83,8 +84,8 @@ if(BUILD_TESTS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
add_executable(Concatenator_Basic_Tests ${CONCATENATOR_TEST_SOURCES})
|
add_executable(Concatenator_Test ${CONCATENATOR_TEST_SOURCES})
|
||||||
target_link_libraries(Concatenator_Basic_Tests Catch)
|
target_link_libraries(Concatenator_Test Catch)
|
||||||
add_test(NAME TestBase COMMAND Concatenator_Base_Test)
|
add_test(NAME TestBase COMMAND Concatenator_Test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user