This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new ec36d3abfb Add some AuTest plugins that I missed to CMake (#10097)
ec36d3abfb is described below
commit ec36d3abfbfd234d643efa1dd91f66c4440a6da0
Author: JosiahWI <[email protected]>
AuthorDate: Thu Jul 27 12:40:03 2023 -0500
Add some AuTest plugins that I missed to CMake (#10097)
* Add tsapi AuTest plugin to CMake build
* Build ssl-post AuTest plugin in CMake
---
tests/CMakeLists.txt | 2 ++
tests/{ => gold_tests/pluginTest/tsapi}/CMakeLists.txt | 9 +--------
tests/{ => gold_tests/tls}/CMakeLists.txt | 18 ++++++++++--------
3 files changed, 13 insertions(+), 16 deletions(-)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 8392b5038f..a7280798d1 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -21,5 +21,7 @@ add_subdirectory(gold_tests/chunked_encoding)
add_subdirectory(gold_tests/continuations/plugins)
add_subdirectory(gold_tests/jsonrpc/plugins)
add_subdirectory(gold_tests/pluginTest/polite_hook_wait)
+add_subdirectory(gold_tests/pluginTest/tsapi)
add_subdirectory(gold_tests/pluginTest/TSVConnFd)
add_subdirectory(gold_tests/timeout)
+add_subdirectory(gold_tests/tls)
diff --git a/tests/CMakeLists.txt
b/tests/gold_tests/pluginTest/tsapi/CMakeLists.txt
similarity index 70%
copy from tests/CMakeLists.txt
copy to tests/gold_tests/pluginTest/tsapi/CMakeLists.txt
index 8392b5038f..85799a39c8 100644
--- a/tests/CMakeLists.txt
+++ b/tests/gold_tests/pluginTest/tsapi/CMakeLists.txt
@@ -15,11 +15,4 @@
#
#######################
-add_subdirectory(tools/plugins)
-add_subdirectory(gold_tests/bigobj)
-add_subdirectory(gold_tests/chunked_encoding)
-add_subdirectory(gold_tests/continuations/plugins)
-add_subdirectory(gold_tests/jsonrpc/plugins)
-add_subdirectory(gold_tests/pluginTest/polite_hook_wait)
-add_subdirectory(gold_tests/pluginTest/TSVConnFd)
-add_subdirectory(gold_tests/timeout)
+add_autest_plugin(test_tsapi test_tsapi.cc)
diff --git a/tests/CMakeLists.txt b/tests/gold_tests/tls/CMakeLists.txt
similarity index 70%
copy from tests/CMakeLists.txt
copy to tests/gold_tests/tls/CMakeLists.txt
index 8392b5038f..3b50cdf9e7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/gold_tests/tls/CMakeLists.txt
@@ -15,11 +15,13 @@
#
#######################
-add_subdirectory(tools/plugins)
-add_subdirectory(gold_tests/bigobj)
-add_subdirectory(gold_tests/chunked_encoding)
-add_subdirectory(gold_tests/continuations/plugins)
-add_subdirectory(gold_tests/jsonrpc/plugins)
-add_subdirectory(gold_tests/pluginTest/polite_hook_wait)
-add_subdirectory(gold_tests/pluginTest/TSVConnFd)
-add_subdirectory(gold_tests/timeout)
+find_package(Threads)
+
+add_executable(ssl-post ssl-post.c)
+
+target_link_libraries(ssl-post PRIVATE OpenSSL::SSL Threads::Threads)
+
+set_target_properties(ssl-post
+ PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+)