Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 1 | From 69a89e8f015802f61637fed0d3791d20a594f298 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
| 3 | Date: Wed, 15 Mar 2023 16:51:58 +0800 |
| 4 | Subject: [PATCH] tests/CMakeLists.txt: do not search ssh/sshd commands on host |
| 5 | |
| 6 | It will search ssh/sshd commands on host when configure. Since they are |
| 7 | not required by unittests, we can skip the search. |
| 8 | |
| 9 | Upstream-Status: Inappropriate [embedded specific] |
| 10 | |
| 11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 12 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 13 | --- |
| 14 | tests/CMakeLists.txt | 2 ++ |
| 15 | 1 file changed, 2 insertions(+) |
| 16 | |
| 17 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 18 | index f5c30061..885c926a 100644 |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 19 | --- a/tests/CMakeLists.txt |
| 20 | +++ b/tests/CMakeLists.txt |
| 21 | @@ -86,6 +86,7 @@ set(TEST_TARGET_LIBRARIES |
| 22 | |
| 23 | add_subdirectory(unittests) |
| 24 | |
| 25 | +if (CLIENT_TESTING OR SERVER_TESTING) |
| 26 | # OpenSSH Capabilities are required for all unit tests |
| 27 | find_program(SSH_EXECUTABLE NAMES ssh) |
| 28 | if (SSH_EXECUTABLE) |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 29 | @@ -302,6 +303,7 @@ if (CLIENT_TESTING OR SERVER_TESTING) |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 30 | |
| 31 | message(STATUS "TORTURE_ENVIRONMENT=${TORTURE_ENVIRONMENT}") |
| 32 | endif () |
| 33 | +endif () |
| 34 | |
| 35 | configure_file(tests_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/tests_config.h) |
| 36 | |