Skip to content

Commit

Permalink
bugfix in dash url
Browse files Browse the repository at this point in the history
  • Loading branch information
mer-a-o committed Feb 8, 2022
1 parent 9683ef9 commit 1c67d06
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,20 @@ if( NOT DEFINED ENV{LOCAL_PATH_JEDI_TESTFILES} )
# Download saber data
foreach( saber_data_tar_name ${saber_data_tar} )

list( APPEND SABER_DATA_DOWNLOADER_ARGS
${ECBUILD_DOWNLOAD_BASE_URL}/${DIRNAME}
${SABER_TESTFILES_PATH}/testdata
${saber_data_tar_name}
${checksum} )
if( DEFINED GIT_TAG_FUNC )
list( APPEND SABER_DATA_DOWNLOADER_ARGS
${ECBUILD_DOWNLOAD_BASE_URL}
${SABER_TESTFILES_PATH}/testdata
${saber_data_tar_name}
${checksum} )

else()
list( APPEND SABER_DATA_DOWNLOADER_ARGS
${ECBUILD_DOWNLOAD_BASE_URL}/${DIRNAME}
${SABER_TESTFILES_PATH}/testdata
${saber_data_tar_name}
${checksum} )
endif()
# add test for downloading data
ecbuild_add_test( TARGET get_data_${saber_data_tar_name}
TYPE SCRIPT
Expand Down Expand Up @@ -311,11 +319,20 @@ if( NOT DEFINED ENV{LOCAL_PATH_JEDI_TESTFILES} )
message( STATUS " Reference: " ${ECBUILD_DOWNLOAD_BASE_URL}/${DIRNAME} )

foreach( saber_ref_tar_name ${saber_ref_tar} )
list( APPEND SABER_DATA_DOWNLOADER_ARGS
${ECBUILD_DOWNLOAD_BASE_URL}/${DIRNAME}
${SABER_TESTFILES_PATH}/testref
${saber_ref_tar_name}
${checksum} )
if( DEFINED GIT_TAG_FUNC )
list( APPEND SABER_DATA_DOWNLOADER_ARGS
${ECBUILD_DOWNLOAD_BASE_URL}
${SABER_TESTFILES_PATH}/testref
${saber_ref_tar_name}
${checksum} )

else()
list( APPEND SABER_DATA_DOWNLOADER_ARGS
${ECBUILD_DOWNLOAD_BASE_URL}/${DIRNAME}
${SABER_TESTFILES_PATH}/testref
${saber_ref_tar_name}
${checksum} )
endif()

# add test for downloading data
ecbuild_add_test( TARGET get_data_${saber_ref_tar_name}
Expand Down

0 comments on commit 1c67d06

Please sign in to comment.