-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Results: $ ptest-runner libssh START: ptest-runner 2023-03-16T02:56 BEGIN: /usr/lib/libssh/ptest PASS: torture_bind_config PASS: torture_buffer PASS: torture_bytearray PASS: torture_callbacks PASS: torture_channel PASS: torture_config PASS: torture_crypto PASS: torture_hashes PASS: torture_init PASS: torture_isipaddr PASS: torture_keyfiles PASS: torture_knownhosts_parsing PASS: torture_list PASS: torture_misc PASS: torture_moduli PASS: torture_options PASS: torture_packet PASS: torture_packet_filter PASS: torture_pki PASS: torture_pki_ecdsa PASS: torture_pki_ed25519 PASS: torture_pki_rsa PASS: torture_push_pop_dir PASS: torture_rand PASS: torture_session_keys PASS: torture_temp_dir PASS: torture_temp_file PASS: torture_threads_buffer PASS: torture_threads_crypto PASS: torture_threads_init PASS: torture_threads_pki_rsa PASS: torture_tokens DURATION: 24 END: /usr/lib/libssh/ptest 2023-03-16T02:56 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: Yi Zhao <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
3 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...pes-support/libssh/libssh/0001-tests-CMakeLists.txt-do-not-search-ssh-sshd-commands.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
From d2525ba0bc7b11de12c54ea1a3d1eb862537136d Mon Sep 17 00:00:00 2001 | ||
From: Yi Zhao <[email protected]> | ||
Date: Wed, 15 Mar 2023 16:51:58 +0800 | ||
Subject: [PATCH] tests/CMakeLists.txt: do not search ssh/sshd commands on host | ||
|
||
It will search ssh/sshd commands on host when configure. Since they are | ||
not required by unittests, we can skip the search. | ||
|
||
Upstream-Status: Inappropriate [embedded specific] | ||
|
||
Signed-off-by: Yi Zhao <[email protected]> | ||
--- | ||
tests/CMakeLists.txt | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt | ||
index 22a36f37..aa32ca2e 100644 | ||
--- a/tests/CMakeLists.txt | ||
+++ b/tests/CMakeLists.txt | ||
@@ -86,6 +86,7 @@ set(TEST_TARGET_LIBRARIES | ||
|
||
add_subdirectory(unittests) | ||
|
||
+if (CLIENT_TESTING OR SERVER_TESTING) | ||
# OpenSSH Capabilities are required for all unit tests | ||
find_program(SSH_EXECUTABLE NAMES ssh) | ||
if (SSH_EXECUTABLE) | ||
@@ -293,6 +294,7 @@ if (CLIENT_TESTING OR SERVER_TESTING) | ||
|
||
message(STATUS "TORTURE_ENVIRONMENT=${TORTURE_ENVIRONMENT}") | ||
endif () | ||
+endif () | ||
|
||
configure_file(tests_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/tests_config.h) | ||
|
||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/sh | ||
|
||
# Valid tests to run | ||
tests="torture_bind_config \ | ||
torture_buffer \ | ||
torture_bytearray \ | ||
torture_callbacks \ | ||
torture_channel \ | ||
torture_config \ | ||
torture_crypto \ | ||
torture_hashes \ | ||
torture_init \ | ||
torture_isipaddr \ | ||
torture_keyfiles \ | ||
torture_knownhosts_parsing \ | ||
torture_list \ | ||
torture_misc \ | ||
torture_moduli \ | ||
torture_options \ | ||
torture_packet \ | ||
torture_packet_filter \ | ||
torture_pki \ | ||
torture_pki_ecdsa \ | ||
torture_pki_ed25519 \ | ||
torture_pki_rsa \ | ||
torture_push_pop_dir \ | ||
torture_rand \ | ||
torture_session_keys \ | ||
torture_temp_dir \ | ||
torture_temp_file \ | ||
torture_threads_buffer \ | ||
torture_threads_crypto \ | ||
torture_threads_init \ | ||
torture_threads_pki_rsa \ | ||
torture_tokens \ | ||
" | ||
|
||
ptestdir=$(dirname "$(readlink -f "$0")") | ||
cd "$ptestdir"/tests || exit | ||
|
||
# Run specified tests | ||
for f in $tests | ||
do | ||
if test -e ./"$f"; then | ||
if ./"$f" > ./"$f".out 2> ./"$f".err; then | ||
echo "PASS: $f" | ||
else | ||
echo "FAIL: $f" | ||
fi | ||
else | ||
echo "SKIP: $f" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters