Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7bcf001

Browse files
committed
Moved the unit tests around.
1 parentb0cdd9a commit7bcf001

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-
PROPERTIESCOMPILE_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-
PROPERTIESRUNTIME_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+
PROPERTIESCOMPILE_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+
PROPERTIESRUNTIME_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)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp