aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-04 09:58:15 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-04 09:58:15 -0800
commite2d54f5187495ef72df3a031c1c2d75ee25567cb (patch)
treee3974e725e9b0d119a448e2153ca3531ce43a82a /tests/CMakeLists.txt
parent51d4f9e0d7f9d44a841497f0d090ceaf9ce81ec6 (diff)
downloadnng-e2d54f5187495ef72df3a031c1c2d75ee25567cb.tar.gz
nng-e2d54f5187495ef72df3a031c1c2d75ee25567cb.tar.bz2
nng-e2d54f5187495ef72df3a031c1c2d75ee25567cb.zip
cmake: remove unused compat test macro
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index abff68c0..4dcfb1ad 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
+# Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
# Copyright 2018 Capitar IT Group BV <info@capitar.com>
# Copyright (c) 2012 Martin Sustrik All rights reserved.
# Copyright (c) 2013 GoPivotal, Inc. All rights reserved.
@@ -60,20 +60,6 @@ if (NNG_TESTS)
math(EXPR NNG_TEST_PORT "${NNG_TEST_PORT}+20")
endmacro(add_nng_test)
- # Compatibility tests are only added if all of the legacy protocols
- # are present. It's not worth trying to figure out which of these
- # should work and which shouldn't.
- macro(add_nng_compat_test NAME TIMEOUT)
- add_executable(${NAME} ${NAME}.c compat_testutil.c)
- target_link_libraries(${NAME} nng_testing)
- target_include_directories(${NAME} PRIVATE
- ${PROJECT_SOURCE_DIR}/src/compat
- ${PROJECT_SOURCE_DIR}/include)
- add_test(NAME nng.${NAME} COMMAND ${NAME} ${NNG_TEST_PORT})
- set_tests_properties(nng.${NAME} PROPERTIES TIMEOUT ${TIMEOUT})
- math(EXPR NNG_TEST_PORT "${NNG_TEST_PORT}+20")
- endmacro(add_nng_compat_test)
-
macro(add_nng_cpp_test NAME TIMEOUT)
if (NOT NNG_ENABLE_COVERAGE)
enable_language(CXX)