mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
27 lines
474 B
Bash
Executable File
27 lines
474 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This shell gets files from the netCDF ftp site for testing.
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
set -e
|
|
echo ""
|
|
file_list="MSGCPP_CWP_NC3.nc MSGCPP_CWP_NC4.nc"
|
|
echo "Getting KNMI test files $file_list"
|
|
|
|
for f1 in $file_list
|
|
do
|
|
if ! test -f $f1; then
|
|
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/$f1.gz
|
|
gunzip $f1.gz
|
|
fi
|
|
done
|
|
|
|
# Run the C program on these files.
|
|
${execdir}/tst_knmi
|
|
|
|
echo "SUCCESS!!!"
|
|
|
|
exit 0
|