This repository was archived by the owner on Jan 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 10
10
/build.ninja
11
11
/catch.hpp
12
12
/cmake_install.cmake
13
- /example_client
14
13
/html
15
14
/json.hpp
16
15
/latex
16
+ /libndt-client
17
17
/libndt.a
18
18
/rules.ninja
19
19
/tests
Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ target_include_directories(
129
129
${CURL_INCLUDE_DIRS}
130
130
)
131
131
target_link_libraries (ndt ${CURL_LIBRARIES} )
132
+ add_executable (libndt-client libndt-client.cpp )
133
+ target_link_libraries (libndt-client ndt )
132
134
install (
133
135
FILES
134
136
libndt.hpp
@@ -141,6 +143,12 @@ install(
141
143
DESTINATION
142
144
lib/measurement_kit/
143
145
)
146
+ install (
147
+ TARGETS
148
+ libndt-client
149
+ DESTINATION
150
+ bin
151
+ )
144
152
if ("${WIN32} " OR "${MINGW} " )
145
153
target_link_libraries (ndt ws2_32 "${_EXTRA_LIBS} " )
146
154
if ("${MINGW} " )
@@ -159,8 +167,6 @@ set(BUILD_TESTING "ON" CACHE BOOL "Whether to build tests")
159
167
160
168
if (${BUILD_TESTING} AND ${LIBNDT_ENABLE_TESTS} )
161
169
enable_testing ()
162
- add_executable (example_client example_client.cpp )
163
- target_link_libraries (example_client ndt )
164
170
add_executable (
165
171
tests
166
172
curlx_test.cpp
@@ -176,11 +182,11 @@ if(${BUILD_TESTING} AND ${LIBNDT_ENABLE_TESTS})
176
182
if (${CURL_FOUND} ) # Some tests require cURL for mlab-ns
177
183
add_test (
178
184
NAME simple_download_test
179
- COMMAND example_client --verbose --download
185
+ COMMAND libndt-client --verbose --download
180
186
)
181
187
add_test (
182
188
NAME simple_upload_test
183
- COMMAND example_client --verbose --json --upload
189
+ COMMAND libndt-client --verbose --json --upload
184
190
)
185
191
endif ()
186
192
endif ()
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ int main() {
21
21
22
22
See [ codedocs.xyz/measurement-kit/libndt] (
23
23
https://codedocs.xyz/measurement-kit/libndt/ ) for API documentation. See
24
- [ example_client .cpp] ( example_client .cpp) for a usage example. See
24
+ [ libndt-client .cpp] ( libndt-client .cpp) for a usage example. See
25
25
[ libndt.hpp] ( libndt.hpp ) for the full API.
26
26
27
27
## Clone
Original file line number Diff line number Diff line change 14
14
15
15
static void usage () {
16
16
std::clog << " \n " ;
17
- std::clog << " Usage: client [options] [<hostname>]\n " ;
17
+ std::clog << " Usage: libndt- client [options] [<hostname>]\n " ;
18
18
std::clog << " \n " ;
19
19
std::clog << " --download : run download test\n " ;
20
20
std::clog << " --download-ext : run multi-stream download test\n " ;
You can’t perform that action at this time.
0 commit comments