blob: d6bc75c3a670009ca50bddb7b21fe7e3a8e3e70a [file] [log] [blame]
Patrick Williams705982a2024-01-12 09:51:57 -06001From 69a89e8f015802f61637fed0d3791d20a594f298 Mon Sep 17 00:00:00 2001
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05002From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 15 Mar 2023 16:51:58 +0800
4Subject: [PATCH] tests/CMakeLists.txt: do not search ssh/sshd commands on host
5
6It will search ssh/sshd commands on host when configure. Since they are
7not required by unittests, we can skip the search.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Patrick Williams705982a2024-01-12 09:51:57 -060012
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050013---
14 tests/CMakeLists.txt | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
Patrick Williams705982a2024-01-12 09:51:57 -060018index f5c30061..885c926a 100644
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050019--- 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 Williams705982a2024-01-12 09:51:57 -060029@@ -302,6 +303,7 @@ if (CLIENT_TESTING OR SERVER_TESTING)
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050030
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