Remove files.
This commit is contained in:
parent
1bf1a4ddca
commit
518e108644
|
@ -1,32 +0,0 @@
|
||||||
# include(${CMAKE_SOURCE_DIR}/build/independent_source.cmake)
|
|
||||||
include(${CMAKE_SOURCE_DIR_IPCSDK}/build/global_config.cmake)
|
|
||||||
set(EXECUTABLE_OUTPUT_PATH ${TEST_OUTPUT_PATH}/bin)
|
|
||||||
|
|
||||||
include_directories(
|
|
||||||
${UTILS_SOURCE_PATH}/ReturnCode/include
|
|
||||||
${UTILS_SOURCE_PATH}/Log/include
|
|
||||||
${EXTERNAL_SOURCE_PATH}/gtest/googletest-release-1.11.0/googletest/include
|
|
||||||
${EXTERNAL_SOURCE_PATH}/gtest/googletest-release-1.11.0/googlemock/include
|
|
||||||
)
|
|
||||||
|
|
||||||
link_directories(
|
|
||||||
${EXTERNAL_SOURCE_PATH}/gtest/googletest-release-1.11.0/googlemock/lib
|
|
||||||
${EXTERNAL_SOURCE_PATH}/gtest/googletest-release-1.11.0/googlemock/lib
|
|
||||||
${LIBS_OUTPUT_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
||||||
|
|
||||||
aux_source_directory(./ SRC_FILES)
|
|
||||||
aux_source_directory(./src SRC_FILES)
|
|
||||||
|
|
||||||
set(TARGET_NAME ReturnCodeTest)
|
|
||||||
add_executable(${TARGET_NAME} ${SRC_FILES})
|
|
||||||
target_link_libraries(${TARGET_NAME} gtest gmock pthread Log)
|
|
||||||
if(${TEST_COVERAGE} MATCHES "true")
|
|
||||||
target_link_libraries(${TARGET_NAME} gcov)
|
|
||||||
endif()
|
|
|
@ -1,9 +0,0 @@
|
||||||
#include <gmock/gmock.h>
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <thread>
|
|
||||||
#include <unistd.h>
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
testing::InitGoogleTest(&argc, argv);
|
|
||||||
return RUN_ALL_TESTS();
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
#include "ReturnCode.h"
|
|
||||||
#include "Log.h"
|
|
||||||
#include <gmock/gmock.h>
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
namespace ReturnCodeTest
|
|
||||||
{
|
|
||||||
// ../output_files/test/bin/ReturnCodeTest --gtest_filter=ReturnCodeTest.Demo
|
|
||||||
TEST(ReturnCodeTest, Demo)
|
|
||||||
{
|
|
||||||
InitLog(LOG_EASYLOGGING, nullptr);
|
|
||||||
LogInfo("hello world.\n");
|
|
||||||
UnInitLog();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user