Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
6537e202
Commit
6537e202
authored
Aug 05, 2014
by
Diego
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved root CMakeLists.txt tests config to tests/CMakeLists.txt
parent
0c4ee0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
79 deletions
+82
-79
CMakeLists.txt
CMakeLists.txt
+3
-79
CMakeLists.txt
tests/CMakeLists.txt
+79
-0
No files found.
CMakeLists.txt
View file @
6537e202
...
...
@@ -678,85 +678,9 @@ endif()
set
(
ZMQ_BUILD_TESTS ON CACHE BOOL
"Build the tests for ZeroMQ"
)
if
(
ZMQ_BUILD_TESTS
)
enable_testing
()
set
(
tests
test_system
test_pair_inproc
test_pair_tcp
test_reqrep_inproc
test_reqrep_tcp
test_hwm
test_reqrep_device
test_sub_forward
test_invalid_rep
test_msg_flags
test_connect_resolve
test_immediate
test_last_endpoint
test_term_endpoint
test_router_mandatory
test_probe_router
test_stream
test_stream_empty
test_stream_disconnect
test_disconnect_inproc
test_ctx_options
test_ctx_destroy
test_security_null
test_security_plain
test_security_curve
test_iov
test_spec_req
test_spec_rep
test_spec_dealer
test_spec_router
test_spec_pushpull
test_req_correlate
test_req_relaxed
test_conflate
test_inproc_connect
test_issue_566
test_shutdown_stress
test_timeo
test_many_sockets
test_diffserv
test_connect_rid
)
if
(
NOT WIN32
)
list
(
APPEND tests
test_monitor
test_pair_ipc
test_reqrep_ipc
test_abstract_ipc
test_proxy
test_filter_ipc
)
if
(
HAVE_FORK
)
list
(
APPEND tests test_fork
)
endif
()
endif
()
foreach
(
test
${
tests
}
)
add_executable
(
${
test
}
tests/
${
test
}
.cpp
)
target_link_libraries
(
${
test
}
libzmq
)
if
(
RT_LIBRARY
)
target_link_libraries
(
${
test
}
${
RT_LIBRARY
}
)
endif
()
if
(
WIN32
)
add_test
(
NAME
${
test
}
WORKING_DIRECTORY
${
LIBRARY_OUTPUT_PATH
}
COMMAND
${
test
}
)
else
()
add_test
(
NAME
${
test
}
COMMAND
${
test
}
)
endif
()
endforeach
()
if
(
NOT WIN32
)
if
(
NOT CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
set_tests_properties
(
test_abstract_ipc PROPERTIES WILL_FAIL true
)
endif
()
endif
()
endif
()
# ZMQ_BUILD_TESTS
enable_testing
()
# Enable testing only works in root scope
ADD_SUBDIRECTORY
(
tests
)
endif
()
#-----------------------------------------------------------------------------
# installer
...
...
tests/CMakeLists.txt
0 → 100644
View file @
6537e202
# CMake build script for ZeroMQ tests
set
(
tests
test_system
test_pair_inproc
test_pair_tcp
test_reqrep_inproc
test_reqrep_tcp
test_hwm
test_reqrep_device
test_sub_forward
test_invalid_rep
test_msg_flags
test_connect_resolve
test_immediate
test_last_endpoint
test_term_endpoint
test_router_mandatory
test_probe_router
test_stream
test_stream_empty
test_stream_disconnect
test_disconnect_inproc
test_ctx_options
test_ctx_destroy
test_security_null
test_security_plain
test_security_curve
test_iov
test_spec_req
test_spec_rep
test_spec_dealer
test_spec_router
test_spec_pushpull
test_req_correlate
test_req_relaxed
test_conflate
test_inproc_connect
test_issue_566
test_shutdown_stress
test_timeo
test_many_sockets
test_diffserv
test_connect_rid
)
if
(
NOT WIN32
)
list
(
APPEND tests
test_monitor
test_pair_ipc
test_reqrep_ipc
test_abstract_ipc
test_proxy
test_filter_ipc
)
if
(
HAVE_FORK
)
list
(
APPEND tests test_fork
)
endif
()
endif
()
foreach
(
test
${
tests
}
)
add_executable
(
${
test
}
${
test
}
.cpp
)
target_link_libraries
(
${
test
}
libzmq
)
if
(
RT_LIBRARY
)
target_link_libraries
(
${
test
}
${
RT_LIBRARY
}
)
endif
()
if
(
WIN32
)
add_test
(
NAME
${
test
}
WORKING_DIRECTORY
${
LIBRARY_OUTPUT_PATH
}
COMMAND
${
test
}
)
else
()
add_test
(
NAME
${
test
}
COMMAND
${
test
}
)
endif
()
endforeach
()
if
(
NOT WIN32
)
if
(
NOT CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
set_tests_properties
(
test_abstract_ipc PROPERTIES WILL_FAIL true
)
endif
()
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment