Commit c719250c authored by Purves, Murray's avatar Purves, Murray
Browse files

Adding check for file existence and progress to test data file download

parent 878d5552
Pipeline #16657 failed with stages
in 6 minutes and 32 seconds
......@@ -9,5 +9,13 @@ ADD_GOOGLE_TEST(tstHysplitCDump.cc NP 1)
ADD_GOOGLE_TEST(tstSpectrum.cc NP 1)
ADD_GOOGLE_TEST(tstArlDataStream.cc NP 1)
file(DOWNLOAD ftp://arlftp.arlhq.noaa.gov/pub/archives/reanalysis/RP195111.gbl ${CMAKE_CURRENT_BINARY_DIR}/RP195111.gbl)
SET(TEST_MET_FILE "RP195111.gbl")
IF(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/${TEST_MET_FILE}")
MESSAGE(STATUS "Test meteorology file ${TEST_MET_FILE} already exists")
ELSE()
SET(TEST_MET_URL ftp://arlftp.arlhq.noaa.gov/pub/archives/reanalysis/${TEST_MET_FILE})
MESSAGE(STATUS "Downloading test meteorology file: ${TEST_MET_URL}...")
FILE(DOWNLOAD ${TEST_MET_URL} ${CMAKE_CURRENT_BINARY_DIR}/${TEST_MET_FILE} SHOW_PROGRESS)
MESSAGE(STATUS "File download complete")
ENDIF()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment