mirror of https://github.com/ecmwf/eccodes.git
Examples: remove autotools deprecated stuff
This commit is contained in:
parent
7ba0f8d079
commit
712927ae43
|
@ -3,7 +3,6 @@
|
|||
# Configure the file which all CMake tests will include
|
||||
configure_file( include.ctest.sh.in include.ctest.sh @ONLY )
|
||||
|
||||
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include.sh ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
# Build the executables used by test scripts
|
||||
#############################################
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
label="bufr_clone_test_c"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_copy_data_c"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_expanded_test_c"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
label="bufr_get_string_array_test_c"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
|
||||
set -x
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
for i in `seq 0 100`; do
|
||||
echo iteration $i
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_read_header_test_c"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_subset_test_c"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
label="get_product_kind_c"
|
||||
fTmp=${label}.tmp
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
label="get_product_kind_samples_c"
|
||||
fTmp=${label}.tmp
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
TEMP=cloned.grib
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
TEMP=c_grib_copy_message.grib
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
input="../../data/index.grib"
|
||||
${examples_dir}/c_grib_ensemble_index $input
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_get_data > /dev/null
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_get_keys
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
temp=temp.c_grib_iterator.txt
|
||||
|
||||
# These two do not have any missing data
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_keys_iterator ${data_dir}/reduced_latlon_surface.grib1 > /dev/null
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_list
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# Test decoding multi-field GRIB2 data
|
||||
${examples_dir}/c_grib_multi
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#if [ ! -f "${data_dir}/sample.grib2" ]
|
||||
#then
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
set -u
|
||||
|
||||
label="grib_nearest_c"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
label="grib_nearest_multiple"
|
||||
temp1=$label.temp1.$$
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_precision
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_print_data ../../data/constant_field.grib1 >/dev/null
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
for i in `seq 0 100`; do
|
||||
${examples_dir}/c_grib_pthreads
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
REGUL_GRID_FILE=${proj_dir}/samples/regular_ll_sfc_grib2.tmpl
|
||||
GAUSS_GRID_FILE=${proj_dir}/samples/reduced_gg_pl_640_grib2.tmpl
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
OUT_TMP=out.set_bitmap_c.grib
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
OUT=temp.c_grib_set_data.out.grib
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/c_grib_set_keys
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
tempGrib="out_surface_level.grib2"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
GRIB1=${data_dir}/regular_latlon_surface.grib1
|
||||
GRIB2=${proj_dir}/samples/regular_ll_sfc_grib2.tmpl
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="grib_values_check_c"
|
||||
|
|
|
@ -3,6 +3,25 @@
|
|||
set -eax
|
||||
echo "Script: $0"
|
||||
|
||||
# Unset any environment variable that could interfere with tests
|
||||
unset ECCODES_EXTRA_DEFINITION_PATH
|
||||
unset ECCODES_LOG_STREAM
|
||||
unset ECCODES_FAIL_IF_LOG_MESSAGE
|
||||
unset ECCODES_DEBUG
|
||||
unset ECCODES_GRIB_WRITE_ON_FAIL
|
||||
unset ECCODES_GRIB_DATA_QUALITY_CHECKS
|
||||
unset ECCODES_GRIB_KEEP_MATRIX
|
||||
unset ECCODES_GRIB_NO_SPD
|
||||
unset ECCODES_GRIB_NO_BIG_GROUP_SPLIT
|
||||
unset ECCODES_GRIB_IEEE_PACKING
|
||||
unset ECCODES_GRIBEX_MODE_ON
|
||||
unset ECCODES_BUFRDC_MODE_ON
|
||||
unset ECCODES_BUFR_SET_TO_MISSING_IF_OUT_OF_RANGE
|
||||
unset ECCODES_BUFR_MULTI_ELEMENT_CONSTANT_ARRAYS
|
||||
unset ECCODES_FILE_POOL_MAX_OPENED_FILES
|
||||
unset ECCODES_IO_BUFFER_SIZE
|
||||
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
HAVE_PRODUCT_BUFR=@HAVE_PRODUCT_BUFR@
|
||||
|
|
|
@ -1,61 +0,0 @@
|
|||
set -ea
|
||||
# (C) Copyright 2005- ECMWF.
|
||||
#
|
||||
# This software is licensed under the terms of the Apache Licence Version 2.0
|
||||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
|
||||
#
|
||||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
CMAKE_INCLUDE_FILE=include.ctest.sh
|
||||
if [ -f "$CMAKE_INCLUDE_FILE" ]; then
|
||||
# This is the config file for Cmake tests
|
||||
. ./$CMAKE_INCLUDE_FILE
|
||||
|
||||
else
|
||||
# This is for autotools
|
||||
echo
|
||||
echo "TEST: $0"
|
||||
set -x
|
||||
|
||||
if [ -z "${data_dir}" ]
|
||||
then
|
||||
cd ../../
|
||||
cpath=`pwd`
|
||||
proj_dir=$cpath
|
||||
ECCODES_DEFINITION_PATH=$cpath/definitions
|
||||
export ECCODES_DEFINITION_PATH
|
||||
ECCODES_SAMPLES_PATH=$cpath/samples
|
||||
export ECCODES_SAMPLES_PATH
|
||||
tools_dir=$cpath/tools
|
||||
examples_dir=$cpath/examples/C
|
||||
|
||||
if test "x$ECCODES_TEST_WITH_VALGRIND" != "x"; then
|
||||
tools_dir="valgrind --error-exitcode=1 -q $cpath/tools"
|
||||
examples_dir="valgrind --error-exitcode=1 -q $cpath/examples/C"
|
||||
fi
|
||||
|
||||
data_dir=$cpath/data
|
||||
else
|
||||
echo "Skipping test $0"
|
||||
exit
|
||||
fi
|
||||
|
||||
cd "$cpath/examples/C"
|
||||
|
||||
if [ -z "${GRIB_API_INCLUDE}" ]
|
||||
then
|
||||
GRIB_API_INCLUDE=`pwd`/src
|
||||
fi
|
||||
|
||||
if [ -z "${GRIB_API_LIB}" ]
|
||||
then
|
||||
GRIB_API_LIB=`pwd`/src
|
||||
fi
|
||||
|
||||
# Download the data needed for tests
|
||||
${data_dir}/download.sh "${data_dir}"
|
||||
|
||||
#${tools_dir}/codes_info
|
||||
set -u
|
||||
fi
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# The executable should produce a GRIB1 file
|
||||
${examples_dir}/c_large_grib1
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# Configure the file which all CMake tests will include
|
||||
configure_file( include.ctest.sh.in include.ctest.sh @ONLY )
|
||||
|
||||
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include.sh ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
# Add all the tests
|
||||
####################
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_clone_test_f"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_copy_data_f"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_copy_keys_test_f"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
INPUT="../../data/bufr/syno_1.bufr"
|
||||
OUTPUT=out.copy.bufr
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
set -u
|
||||
|
||||
label="bufr_ecc-1284_test_f"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_expanded_test_f"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_get_string_array_test_f"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_keys_iterator_test_f"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
label="bufr_read_header_test_f"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# Define a common label for all the tmp files
|
||||
label="bufr_read_tempf_f"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_set_keys_test_f"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="bufr_subset_test_f"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
label="get_product_kind_f"
|
||||
fTmp=${label}.tmp
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_clone > /dev/null
|
||||
rm -f out.clone.grib1
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
INPUT="../../data/constant_field.grib1"
|
||||
OUTPUT=out.copy.grib1
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#Define a common label for all the tmp files
|
||||
label="grib_copy_namespace_test_f"
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_count_messages > /dev/null
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
INPUT="../../data/multi.grib2"
|
||||
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
exec ${examples_dir}/eccodes_f_grib_ecc-1316
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
exec ${examples_dir}/eccodes_f_grib_ecc-671
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_get_data > /dev/null
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_get_keys > /dev/null
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_get_pl > /dev/null
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_get_pv > /dev/null
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
|
||||
uuid=`${tools_dir}/grib_get -w count=1 -p uuidOfVGrid:s ${data_dir}/test_uuid.grib2`
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# if an index file does not exist then
|
||||
# create index and save to disk
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_keys_iterator > /dev/null
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_multi > multi.out
|
||||
diff multi.out ${data_dir}/multi.ok
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_multi_write > /dev/null
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_nearest > /dev/null
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_precision > /dev/null
|
||||
rm -f ${data_dir}/regular_latlon_surface_prec.grib1
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_print_data | grep '99200 *values found'
|
||||
${examples_dir}/eccodes_f_grib_print_data_static | grep '496 *values found'
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
#
|
||||
# Check program completed successfully. We have to resort to testing
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
in=../../data/index.grib
|
||||
out=out.readmsg.grib
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
# Take a GRIB file in the data folder and make it a sample file (extension .tmpl)
|
||||
rm -f ${data_dir}/regular_latlon_surface.grib1.tmpl
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
OUT_TMP=out.set_bitmap_f.grib
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
OUT=temp.f_grib_set_data.out.grib
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_set_keys > /dev/null
|
||||
res=`${tools_dir}/grib_get -p centre out.set.grib1`
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_set_missing > /dev/null
|
||||
rm -f f_out_surface_level.grib2
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
tempSimple=temp.f_grib_set_packing.simple.grib
|
||||
tempSecond=temp.f_grib_set_packing.second.grib
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
|
||||
. ./include.sh
|
||||
. ./include.ctest.sh
|
||||
|
||||
${examples_dir}/eccodes_f_grib_set_pv > /dev/null
|
||||
rm -f out.pv.grib1
|
||||
|
|
|
@ -3,6 +3,24 @@
|
|||
set -eax
|
||||
echo "Script: $0"
|
||||
|
||||
# Unset any environment variable that could interfere with tests
|
||||
unset ECCODES_EXTRA_DEFINITION_PATH
|
||||
unset ECCODES_LOG_STREAM
|
||||
unset ECCODES_FAIL_IF_LOG_MESSAGE
|
||||
unset ECCODES_DEBUG
|
||||
unset ECCODES_GRIB_WRITE_ON_FAIL
|
||||
unset ECCODES_GRIB_DATA_QUALITY_CHECKS
|
||||
unset ECCODES_GRIB_KEEP_MATRIX
|
||||
unset ECCODES_GRIB_NO_SPD
|
||||
unset ECCODES_GRIB_NO_BIG_GROUP_SPLIT
|
||||
unset ECCODES_GRIB_IEEE_PACKING
|
||||
unset ECCODES_GRIBEX_MODE_ON
|
||||
unset ECCODES_BUFRDC_MODE_ON
|
||||
unset ECCODES_BUFR_SET_TO_MISSING_IF_OUT_OF_RANGE
|
||||
unset ECCODES_BUFR_MULTI_ELEMENT_CONSTANT_ARRAYS
|
||||
unset ECCODES_FILE_POOL_MAX_OPENED_FILES
|
||||
unset ECCODES_IO_BUFFER_SIZE
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
HAVE_PRODUCT_BUFR=@HAVE_PRODUCT_BUFR@
|
||||
|
|
|
@ -59,7 +59,7 @@ status=$?
|
|||
set -e
|
||||
[ $status -eq 1 ]
|
||||
grep -q "ERROR:.*Is a directory" $temp_err
|
||||
rm -rf $temp_dir
|
||||
rm -rf $temp_dir $temp_err
|
||||
|
||||
|
||||
# ----------------------------------------
|
||||
|
|
Loading…
Reference in New Issue