From 525818744a53513a63bd3858ee091272814ec592 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 30 May 2025 20:50:48 +0200 Subject: [PATCH] use rsync instead of scp --- .../developer_scripts/run_testsuite_with_ctest | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Scripts/developer_scripts/run_testsuite_with_ctest b/Scripts/developer_scripts/run_testsuite_with_ctest index 8c93c47f074..148710970d8 100644 --- a/Scripts/developer_scripts/run_testsuite_with_ctest +++ b/Scripts/developer_scripts/run_testsuite_with_ctest @@ -1,6 +1,16 @@ #!/bin/bash #usage : script [-c -l -n -s -k] testsuite_dir +if command -v rsync >/dev/null 2>&1; then + rsync_scp() { + rsync -avz --chmod=ugo=rX "$@" + } +else + rsync_scp() { + command scp "$@" + } +fi + ########################## #### LAUNCH CTEST #### ########################## @@ -200,14 +210,14 @@ put_on_web() { log "${ACTUAL_LOGFILE}" "Uploading results ${1} to $UPLOAD_RESULT_DESTINATION/$2" - "$SCP" "${1}" "$UPLOAD_RESULT_DESTINATION/$2" >> "${ACTUAL_LOGFILE}" + rsync_scp "${1}" "$UPLOAD_RESULT_DESTINATION/$2" >> "${ACTUAL_LOGFILE}" } - +# ---------------------------------------------------------------------------------------- put_demos_on_web() { log "${ACTUAL_LOGFILE}" "Uploading demos ${1} to $UPLOAD_DEMOS_DESTINATION/$2" - "$SCP" "${1}" "$UPLOAD_DEMOS_DESTINATION/$2" >> "${ACTUAL_LOGFILE}" + rsync_scp "${1}" "$UPLOAD_DEMOS_DESTINATION/$2" >> "${ACTUAL_LOGFILE}" }