mirror of https://github.com/ecmwf/eccodes.git
GRIB-677: better handling of data downloads
This commit is contained in:
parent
84f1a4ebe9
commit
a3f4ae3b6b
|
@ -826,7 +826,9 @@ for f in $files; do
|
|||
fi
|
||||
$DNLD_PROG $f ${download_URL}/test-data/grib_api/data/$f
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to download file: $f"
|
||||
echo
|
||||
echo "Failed to download file \"$f\" from \"${download_URL}\"" 2>&1
|
||||
echo "Aborting" 2>&1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -14,6 +14,12 @@ TESTS = definitions.sh calendar.sh \
|
|||
read_any.sh padding.sh lamb_az_eq_area.sh grib_to_netcdf.sh debug.sh \
|
||||
jpeg.sh ccsds.sh
|
||||
|
||||
# First download all the necessary data for testing
|
||||
# Note: if download fails, no tests will be done
|
||||
$(TESTS): download_data
|
||||
download_data:
|
||||
@$(top_srcdir)/data/download.sh $(top_srcdir)/data
|
||||
|
||||
noinst_PROGRAMS = packing_check gauss_sub read_any double_cmp packing pack_unpack \
|
||||
multi_from_message julian read_index index gribex_perf\
|
||||
jpeg_perf ccsds_perf so_perf png_perf bpv_limit laplacian \
|
||||
|
|
|
@ -57,9 +57,6 @@ else
|
|||
GRIB_API_LIB=`pwd`/src
|
||||
fi
|
||||
|
||||
# Download the data needed for tests
|
||||
${data_dir}/download.sh "${data_dir}"
|
||||
|
||||
# go back to current working dir
|
||||
cd $save
|
||||
set -u
|
||||
|
|
Loading…
Reference in New Issue