Skip to content

Commit 7bcf001

Browse files
committed
Moved the unit tests around.
1 parent b0cdd9a commit 7bcf001

13 files changed

+31
-24
lines changed

http/test/v2/CMakeLists.txt

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,5 @@
33
# (See accompanying file LICENSE_1_0.txt or copy at
44
# http://www.boost.org/LICENSE_1_0.txt)
55

6-
set(CPP-NETLIB_CLIENT_TESTS
7-
constants_test
8-
)
9-
10-
foreach(test ${CPP-NETLIB_CLIENT_TESTS})
11-
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
12-
set_source_files_properties(${test}.cpp
13-
PROPERTIES COMPILE_FLAGS "-Wall")
14-
endif()
15-
16-
add_executable(cpp-netlib-http-v2-${test} ${test}.cpp)
17-
target_link_libraries(cpp-netlib-http-v2-${test}
18-
network-http-constants-v2
19-
${GTEST_BOTH_LIBRARIES}
20-
${CMAKE_THREAD_LIBS_INIT}
21-
)
22-
set_target_properties(cpp-netlib-http-v2-${test}
23-
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests)
24-
add_test(cpp-netlib-http-v2-${test}
25-
${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-v2-${test})
26-
27-
endforeach(test)
28-
29-
add_subdirectory(client)
6+
add_subdirectory(units)
7+
#add_subdirectory(features)

http/test/v2/units/CMakeLists.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright (C) 2013 by Glyn Matthews
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# (See accompanying file LICENSE_1_0.txt or copy at
4+
# http://www.boost.org/LICENSE_1_0.txt)
5+
6+
set(CPP-NETLIB_CLIENT_TESTS
7+
constants_test
8+
)
9+
10+
foreach(test ${CPP-NETLIB_CLIENT_TESTS})
11+
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
12+
set_source_files_properties(${test}.cpp
13+
PROPERTIES COMPILE_FLAGS "-Wall")
14+
endif()
15+
16+
add_executable(cpp-netlib-http-v2-${test} ${test}.cpp)
17+
target_link_libraries(cpp-netlib-http-v2-${test}
18+
network-http-constants-v2
19+
${GTEST_BOTH_LIBRARIES}
20+
${CMAKE_THREAD_LIBS_INIT}
21+
)
22+
set_target_properties(cpp-netlib-http-v2-${test}
23+
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests)
24+
add_test(cpp-netlib-http-v2-${test}
25+
${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-v2-${test})
26+
27+
endforeach(test)
28+
29+
add_subdirectory(client)

0 commit comments

Comments
 (0)