Rename test to autotest
This commit is contained in:
+5
-5
@@ -8,9 +8,9 @@ endif()
|
|||||||
|
|
||||||
project(webcc)
|
project(webcc)
|
||||||
|
|
||||||
option(WEBCC_ENABLE_TEST "Build test?" ON)
|
option(WEBCC_ENABLE_AUTOTEST "Build automation test?" OFF)
|
||||||
option(WEBCC_ENABLE_UNITTEST "Build unit test?" ON)
|
option(WEBCC_ENABLE_UNITTEST "Build unit test?" OFF)
|
||||||
option(WEBCC_ENABLE_EXAMPLES "Build examples?" ON)
|
option(WEBCC_ENABLE_EXAMPLES "Build examples?" OFF)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
option(WEBCC_ENABLE_VLD "Enable VLD (Visual Leak Detector)?" OFF)
|
option(WEBCC_ENABLE_VLD "Enable VLD (Visual Leak Detector)?" OFF)
|
||||||
@@ -139,8 +139,8 @@ if(WEBCC_ENABLE_EXAMPLES)
|
|||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WEBCC_ENABLE_TEST)
|
if(WEBCC_ENABLE_AUTOTEST)
|
||||||
add_subdirectory(test)
|
add_subdirectory(autotest)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WEBCC_ENABLE_UNITTEST)
|
if(WEBCC_ENABLE_UNITTEST)
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
# Tests
|
# Auto test
|
||||||
|
|
||||||
|
set(AT_SRCS
|
||||||
|
test_http_client.cc
|
||||||
|
)
|
||||||
|
|
||||||
|
set(AT_TARGET_NAME webcc_autotest)
|
||||||
|
|
||||||
# Common libraries to link.
|
# Common libraries to link.
|
||||||
set(TEST_LIBS webcc ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
|
set(TEST_LIBS webcc ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
|
||||||
@@ -18,5 +24,5 @@ if(UNIX)
|
|||||||
set(TEST_LIBS ${TEST_LIBS} ${CMAKE_DL_LIBS})
|
set(TEST_LIBS ${TEST_LIBS} ${CMAKE_DL_LIBS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(test_http_client test_http_client.cc)
|
add_executable(${AT_TARGET_NAME} ${AT_SRCS})
|
||||||
target_link_libraries(test_http_client gtest jsoncpp ${TEST_LIBS})
|
target_link_libraries(${AT_TARGET_NAME} webcc gtest ${TEST_LIBS})
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -1,4 +1,5 @@
|
|||||||
# Unit test
|
# Unit test
|
||||||
|
|
||||||
set(UT_SRCS
|
set(UT_SRCS
|
||||||
base64_test.cc
|
base64_test.cc
|
||||||
http_parser_test.cc
|
http_parser_test.cc
|
||||||
|
|||||||
Reference in New Issue
Block a user