From 49d0fcf88089917dd9a6bd6cdc6086c74ffe5c94 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 6 Jun 2023 16:22:35 +0200 Subject: [PATCH] fix demos upload URL --- Scripts/developer_scripts/autotest_cgal_with_ctest | 1 + Scripts/developer_scripts/run_testsuite_with_ctest | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Scripts/developer_scripts/autotest_cgal_with_ctest b/Scripts/developer_scripts/autotest_cgal_with_ctest index ccf560ac808..e9b0c851dbb 100755 --- a/Scripts/developer_scripts/autotest_cgal_with_ctest +++ b/Scripts/developer_scripts/autotest_cgal_with_ctest @@ -16,6 +16,7 @@ export CURL="curl" export CURL_OPTS="-k --remote-name --silent --location-trusted" export CGAL_URL="https://cgal.geometryfactory.com/CGAL/Releases" export UPLOAD_RESULT_DESTINATION="cgaltest@cgaltest.geometryfactory.com:incoming" +export UPLOAD_DEMOS_DESTINATION="cgaltest@cgaltest.geometryfactory.com:public_html/incoming" export LATEST_LOCATION="${CGAL_URL}/LATEST" export TAR="tar" export GUNZIP="gunzip" diff --git a/Scripts/developer_scripts/run_testsuite_with_ctest b/Scripts/developer_scripts/run_testsuite_with_ctest index 7101c7462c2..8c93c47f074 100644 --- a/Scripts/developer_scripts/run_testsuite_with_ctest +++ b/Scripts/developer_scripts/run_testsuite_with_ctest @@ -203,6 +203,12 @@ put_on_web() "$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}" +} collect_demos_binaries() @@ -273,7 +279,7 @@ publish_results() log "${ACTUAL_LOGFILE}.test.${PLATFORM}" "PUTTING RESULTS ON THE WEB" put_on_web "test_results-${HOST}_${PLATFORM}.tar.gz" "${FILENAME}" if [ -e "demos_${CGAL_TESTER}_${PLATFORM}.tar.gz" ]; then - put_on_web "demos_${CGAL_TESTER}_${PLATFORM}.tar.gz" "public_html/demos-${FILENAME}" + put_demos_on_web "demos_${CGAL_TESTER}_${PLATFORM}.tar.gz" "demos-${FILENAME}" fi log_done "${ACTUAL_LOGFILE}" fi