Remove trailing / from examples_dir

This commit is contained in:
Florian Rathgeber 2017-02-03 14:29:47 +00:00
parent 4279c88d75
commit 79e277db1a
84 changed files with 104 additions and 104 deletions

View File

@ -24,7 +24,7 @@ rm -f $fTmp | true
REDIRECT=/dev/null
#Write the key values into a file
${examples_dir}c_bufr_attributes 2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_attributes 2> $REDIRECT > $fTmp
#TODO: check the results

View File

@ -22,7 +22,7 @@ f=${data_dir}/bufr/syno_1.bufr
REDIRECT=/dev/null
#Clone the bufr messages
${examples_dir}c_bufr_clone $f $fBufrTmp >$REDIRECT 2> $REDIRECT
${examples_dir}/c_bufr_clone $f $fBufrTmp >$REDIRECT 2> $REDIRECT
#Compare clone to the original
set +e

View File

@ -53,7 +53,7 @@ cat > ${REF} <<EOF
EOF
INPUT=${data_dir}/bufr/metar_with_2_bias.bufr
${examples_dir}c_bufr_copy_data ${INPUT} ${TEMP}
${examples_dir}/c_bufr_copy_data ${INPUT} ${TEMP}
# The input and output BUFR messages should be different
set +e

View File

@ -24,7 +24,7 @@ f=${data_dir}/bufr/syno_1.bufr
REDIRECT=/dev/null
#Write the values into a file
${examples_dir}c_bufr_expanded $f > $fTmp 2> $REDIRECT
${examples_dir}/c_bufr_expanded $f > $fTmp 2> $REDIRECT
#TODO: add a better check. It could be compared against the bufrdc
# references.

View File

@ -24,7 +24,7 @@ rm -f $fTmp | true
REDIRECT=/dev/null
#Write the key values into a file
${examples_dir}c_bufr_get_keys 2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_get_keys 2> $REDIRECT > $fTmp
#TODO: check the results

View File

@ -24,7 +24,7 @@ REDIRECT=/dev/null
f=${data_dir}/bufr/syno_1.bufr
#Dump the keys
${examples_dir}c_bufr_keys_iterator $f 2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_keys_iterator $f 2> $REDIRECT > $fTmp
#TODO: check the output
grep -q '#5#cloudAmount->percentConfidence=70' $fTmp

View File

@ -24,7 +24,7 @@ rm -f $fTmp | true
REDIRECT=/dev/null
#Write the key values into a file
${examples_dir}c_bufr_missing #2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_missing #2> $REDIRECT > $fTmp
#TODO: check the results

View File

@ -11,5 +11,5 @@
for i in `seq 0 100`; do
#echo iteration $i
${examples_dir}c_bufr_pthreads
${examples_dir}/c_bufr_pthreads
done

View File

@ -28,7 +28,7 @@ fRef=${f}.header.ref
REDIRECT=/dev/null
#Write the values into a file and compare with reference
${examples_dir}c_bufr_read_header $f 2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_read_header $f 2> $REDIRECT > $fTmp
#We compare output to the reference by ignoring the whitespaces
diff -w $fRef $fTmp >$REDIRECT 2> $REDIRECT

View File

@ -23,7 +23,7 @@ rm -f $fTmp
REDIRECT=/dev/null
# Write the key values into a file
${examples_dir}c_bufr_read_scatterometer 2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_read_scatterometer 2> $REDIRECT > $fTmp
# Check the results
grep -q "Number of values: 2016" $fTmp

View File

@ -24,7 +24,7 @@ rm -f $fTmp | true
REDIRECT=/dev/null
#Write the values into a file and compare with reference
${examples_dir}c_bufr_read_synop #2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_read_synop #2> $REDIRECT > $fTmp
#TODO: check the output

View File

@ -24,7 +24,7 @@ rm -f $fTmp | true
REDIRECT=/dev/null
#Write the key values into a file
${examples_dir}c_bufr_read_temp #2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_read_temp #2> $REDIRECT > $fTmp
#TODO: check the results

View File

@ -25,7 +25,7 @@ f=${data_dir}/bufr/syno_multi.bufr
REDIRECT=/dev/null
#
${examples_dir}c_bufr_set_keys $fBufrTmp 2> $REDIRECT > $REDIRECT
${examples_dir}/c_bufr_set_keys $fBufrTmp 2> $REDIRECT > $REDIRECT
#Compare modified to the original
set +e

View File

@ -42,7 +42,7 @@ EOF
REDIRECT=/dev/null
#Write the values into a file and compare with reference
${examples_dir}c_bufr_subset 2> $REDIRECT > $fTmp
${examples_dir}/c_bufr_subset 2> $REDIRECT > $fTmp
#We compare output to the reference by ignoring the whitespaces
diff -w $fRef $fTmp >$REDIRECT 2> $REDIRECT

View File

@ -16,6 +16,6 @@ fTmp=${label}.tmp
# Create a file containing both GRIB and BUFR messages
cat ${data_dir}/sample.grib2 ${data_dir}/bufr/syno_multi.bufr >$fTmp
${examples_dir}c_get_product_kind $fTmp
${examples_dir}/c_get_product_kind $fTmp
rm -f $fTmp

View File

@ -12,11 +12,11 @@
TEMP=cloned.grib
INPUT=${data_dir}/reduced_gaussian_pressure_level.grib1
${examples_dir}c_grib_clone ${INPUT} ${TEMP} > /dev/null
${examples_dir}/c_grib_clone ${INPUT} ${TEMP} > /dev/null
${tools_dir}/grib_compare ${INPUT} ${TEMP}
INPUT=${data_dir}/sample.grib2
${examples_dir}c_grib_clone ${INPUT} ${TEMP} > /dev/null
${examples_dir}/c_grib_clone ${INPUT} ${TEMP} > /dev/null
${tools_dir}/grib_compare ${INPUT} ${TEMP}
rm -f ${TEMP}

View File

@ -12,11 +12,11 @@
TEMP=c_grib_copy_message.grib
INPUT=${data_dir}/reduced_gaussian_pressure_level.grib1
${examples_dir}c_grib_copy_message ${INPUT} ${TEMP} > /dev/null
${examples_dir}/c_grib_copy_message ${INPUT} ${TEMP} > /dev/null
${tools_dir}/grib_compare -b hour ${INPUT} ${TEMP}
INPUT=${data_dir}/sample.grib2
${examples_dir}c_grib_copy_message ${INPUT} ${TEMP} > /dev/null
${examples_dir}/c_grib_copy_message ${INPUT} ${TEMP} > /dev/null
${tools_dir}/grib_compare -b hour ${INPUT} ${TEMP}
rm -f ${TEMP}

View File

@ -10,13 +10,13 @@
. ./include.sh
input="../../data/index.grib"
${examples_dir}c_grib_ensemble_index $input
${examples_dir}/c_grib_ensemble_index $input
# ECC-378: Empty input file
temp=temp_index.empty.grib
touch $temp
set +e
${examples_dir}c_grib_ensemble_index $temp 2>/dev/null
${examples_dir}/c_grib_ensemble_index $temp 2>/dev/null
status=$?
set -e
[ $status -ne 0 ]

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}c_grib_get_data > /dev/null
${examples_dir}/c_grib_get_data > /dev/null

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}c_grib_get_keys
${examples_dir}/c_grib_get_keys

View File

@ -9,7 +9,7 @@
. ./include.sh
${examples_dir}c_grib_iterator ${data_dir}/reduced_gaussian_model_level.grib1 > /dev/null
${examples_dir}/c_grib_iterator ${data_dir}/reduced_gaussian_model_level.grib1 > /dev/null
${examples_dir}c_grib_iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null
${examples_dir}/c_grib_iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null

View File

@ -9,8 +9,8 @@
. ./include.sh
${examples_dir}c_grib_keys_iterator ${data_dir}/reduced_latlon_surface.grib1 > /dev/null
${examples_dir}/c_grib_keys_iterator ${data_dir}/reduced_latlon_surface.grib1 > /dev/null
${examples_dir}c_grib_keys_iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null
${examples_dir}/c_grib_keys_iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null
${examples_dir}c_grib_keys_iterator ${data_dir}/mixed.grib > /dev/null
${examples_dir}/c_grib_keys_iterator ${data_dir}/mixed.grib > /dev/null

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}c_grib_list
${examples_dir}/c_grib_list

View File

@ -13,13 +13,13 @@ if [ ! -f "${data_dir}/multi.grib2" ]
then
echo "SKIP test 1: $0"
else
${examples_dir}c_grib_multi > /dev/null
${examples_dir}/c_grib_multi > /dev/null
fi
if [ ! -f "${data_dir}/multi_created.grib2" ]
then
echo "SKIP test 2: $0"
else
${examples_dir}c_multi2 > /dev/null
${examples_dir}/c_multi2 > /dev/null
fi

View File

@ -14,7 +14,7 @@ then
echo SKIP: $0
exit
fi
${examples_dir}c_grib_multi_write ${data_dir}/sample.grib2 ${data_dir}/multi_sample.grib2 > /dev/null
${examples_dir}/c_grib_multi_write ${data_dir}/sample.grib2 ${data_dir}/multi_sample.grib2 > /dev/null
${tools_dir}/grib_get -p step ${data_dir}/multi_sample.grib2 > ${data_dir}/multi_step.test

View File

@ -9,6 +9,6 @@
. ./include.sh
${examples_dir}c_grib_precision
${examples_dir}/c_grib_precision
rm -f out.precision.grib1

View File

@ -9,7 +9,7 @@
. ./include.sh
numberOfValues=`${examples_dir}c_grib_print_data ../../data/constant_field.grib1 | grep values | awk '{print $1}'`
numberOfValues=`${examples_dir}/c_grib_print_data ../../data/constant_field.grib1 | grep values | awk '{print $1}'`
if [ $numberOfValues -ne 99200 ]
then

View File

@ -10,5 +10,5 @@
. ./include.sh
for i in `seq 0 100`; do
${examples_dir}c_grib_pthreads
${examples_dir}/c_grib_pthreads
done

View File

@ -12,7 +12,7 @@
OUT_TMP=out.set_bitmap_c.grib
# The input and output files are hardcoded in the example
${examples_dir}c_grib_set_bitmap
${examples_dir}/c_grib_set_bitmap
x=`${tools_dir}/grib_get -p numberOfDataPoints,numberOfCodedValues,numberOfMissing $OUT_TMP`
[ "$x" = "496 486 10" ]

View File

@ -11,6 +11,6 @@
OUT=temp.c_grib_set_data.out.grib
${examples_dir}c_grib_set_data $OUT
${examples_dir}/c_grib_set_data $OUT
rm -f $OUT

View File

@ -9,6 +9,6 @@
. ./include.sh
${examples_dir}c_grib_set_keys
${examples_dir}/c_grib_set_keys
rm -f out.set.grib1

View File

@ -13,7 +13,7 @@ GRIB1=${data_dir}/regular_latlon_surface.grib1
GRIB2=${proj_dir}/samples/regular_ll_sfc_grib2.tmpl
OUT=temp.$$.out
${examples_dir}c_grib_set_pv $GRIB1 $OUT > /dev/null
${examples_dir}c_grib_set_pv $GRIB2 $OUT > /dev/null
${examples_dir}/c_grib_set_pv $GRIB1 $OUT > /dev/null
${examples_dir}/c_grib_set_pv $GRIB2 $OUT > /dev/null
rm -f $OUT

View File

@ -16,7 +16,7 @@ ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH
tools_dir=@CMAKE_BINARY_DIR@/bin
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
examples_dir=@CMAKE_CURRENT_BINARY_DIR@
# If this environment variable is set, then run the
# executables with valgrind

View File

@ -33,11 +33,11 @@ else
ECCODES_SAMPLES_PATH=$cpath/samples
export ECCODES_SAMPLES_PATH
tools_dir=$cpath/tools
examples_dir=$cpath/examples/C/
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/"
examples_dir="valgrind --error-exitcode=1 -q $cpath/examples/C"
fi
data_dir=$cpath/data

View File

@ -10,7 +10,7 @@
. ./include.sh
# The executable should produce a GRIB1 file
${examples_dir}c_large_grib1
${examples_dir}/c_large_grib1
# Make sure the newly created file can be listed OK
output=bigfile.grib

View File

@ -15,7 +15,7 @@ OUTPUT=temp.sections.grib
##################
# Copy the GRID section from REGUL_GRID_FILE
${examples_dir}c_sections_copy $REGUL_GRID_FILE $GAUSS_GRID_FILE g $OUTPUT >/dev/null
${examples_dir}/c_sections_copy $REGUL_GRID_FILE $GAUSS_GRID_FILE g $OUTPUT >/dev/null
# Now the output should have a regular grid
# but its date should be the same as the Gaussian grid sample
@ -25,7 +25,7 @@ grid_tmpl=`${tools_dir}/grib_get -p gridType,date $OUTPUT`
##################
# Copy the GRID section from GAUSS_GRID_FILE
${examples_dir}c_sections_copy $GAUSS_GRID_FILE $REGUL_GRID_FILE g $OUTPUT >/dev/null
${examples_dir}/c_sections_copy $GAUSS_GRID_FILE $REGUL_GRID_FILE g $OUTPUT >/dev/null
# Now the output should have a gaussian grid
# but its date should be the same as the regular grid
@ -35,7 +35,7 @@ grid_tmpl=`${tools_dir}/grib_get -p gridType,date $OUTPUT`
##################
# Copy both the PRODUCT and GRID sections from REGUL_GRID_FILE
${examples_dir}c_sections_copy $REGUL_GRID_FILE $GAUSS_GRID_FILE gp $OUTPUT >/dev/null
${examples_dir}/c_sections_copy $REGUL_GRID_FILE $GAUSS_GRID_FILE gp $OUTPUT >/dev/null
# Now the output should have a regular grid
# and its date should be the same as the regular latlon
@ -45,7 +45,7 @@ grid_tmpl=`${tools_dir}/grib_get -p gridType,date $OUTPUT`
##################
# Copy all sections from REGUL_GRID_FILE (use commas)
${examples_dir}c_sections_copy $REGUL_GRID_FILE $GAUSS_GRID_FILE p,l,g,d,b $OUTPUT >/dev/null
${examples_dir}/c_sections_copy $REGUL_GRID_FILE $GAUSS_GRID_FILE p,l,g,d,b $OUTPUT >/dev/null
# Now the output should be identical to the regular grib
${tools_dir}/grib_compare $REGUL_GRID_FILE $OUTPUT

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}c_set_missing
${examples_dir}/c_set_missing
rm -f out_surface_level.grib2

View File

@ -54,7 +54,7 @@ cat > ${REF} <<EOF
EOF
INPUT=metar_with_2_bias.bufr
${examples_dir}eccodes_f_bufr_copy_data ${INPUT} ${TEMP}
${examples_dir}/eccodes_f_bufr_copy_data ${INPUT} ${TEMP}
# The input and output BUFR messages should be different
set +e
${tools_dir}/bufr_compare ${TEMP} ${INPUT} > ${MYLOG}

View File

@ -18,7 +18,7 @@ cd ${data_dir}/bufr
#The input and output BUFR files are hardcoded in the f90 example!!!
OUTPUT=out.$label.bufr
${examples_dir}eccodes_f_bufr_copy_keys
${examples_dir}/eccodes_f_bufr_copy_keys
res=`${tools_dir}/bufr_get -p bufrHeaderCentre $OUTPUT`
[ "$res" = "80" ]

View File

@ -12,7 +12,7 @@
INPUT="../../data/bufr/syno_1.bufr"
OUTPUT=out.copy.bufr
${examples_dir}eccodes_f_bufr_copy_message > /dev/null
${examples_dir}/eccodes_f_bufr_copy_message > /dev/null
${tools_dir}/bufr_compare -b bufrHeaderSubCentre $INPUT $OUTPUT
rm -f $OUTPUT

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_get_pl > /dev/null
${examples_dir}/eccodes_f_get_pl > /dev/null

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_get_pv > /dev/null
${examples_dir}/eccodes_f_get_pv > /dev/null

View File

@ -14,7 +14,7 @@ uuid=`${tools_dir}/grib_get -w count=1 -p uuidOfVGrid:s ${data_dir}/test_uuid.gr
[ "$uuid" = "08b1e836bc6911e1951fb51b5624ad8d" ]
# This reads the file in data/test_uuid.grib2 and creates test_uuid.grib2
${examples_dir}eccodes_f_get_set_uuid > /dev/null
${examples_dir}/eccodes_f_get_set_uuid > /dev/null
# Check output was written
output=out_uuid.grib2

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}eccodes_f_grib_clone > /dev/null
${examples_dir}/eccodes_f_grib_clone > /dev/null
rm -f out.clone.grib1

View File

@ -12,7 +12,7 @@
INPUT="../../data/constant_field.grib1"
OUTPUT=out.copy.grib1
${examples_dir}eccodes_f_grib_copy_message > /dev/null
${examples_dir}/eccodes_f_grib_copy_message > /dev/null
${tools_dir}/grib_compare -b centre $INPUT $OUTPUT
rm -f $OUTPUT

View File

@ -18,7 +18,7 @@ res=`${tools_dir}/grib_get -p Ni,Nj $INPUT`
#The input and output BUFR files are hardcoded in the f90 example!!!
OUTPUT=out.grib_copy_namespace.grib
${examples_dir}./eccodes_f_grib_copy_namespace
${examples_dir}/eccodes_f_grib_copy_namespace
res=`${tools_dir}/grib_get -p Ni,Nj $OUTPUT`
[ "$res" = "MISSING 501" ]

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_grib_count_messages > /dev/null
${examples_dir}/eccodes_f_grib_count_messages > /dev/null

View File

@ -12,9 +12,9 @@
INPUT="../../data/multi.grib2"
# Without multi-field support
c=`${examples_dir}eccodes_f_grib_count_messages_multi 0 $INPUT | tr -d ' '`
c=`${examples_dir}/eccodes_f_grib_count_messages_multi 0 $INPUT | tr -d ' '`
[ "$c" = "30" ]
# With multi-field support (more messages should be counted)
c=`${examples_dir}eccodes_f_grib_count_messages_multi 1 $INPUT | tr -d ' '`
c=`${examples_dir}/eccodes_f_grib_count_messages_multi 1 $INPUT | tr -d ' '`
[ "$c" = "56" ]

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_grib_get_data > /dev/null
${examples_dir}/eccodes_f_grib_get_data > /dev/null

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_grib_get_keys > /dev/null
${examples_dir}/eccodes_f_grib_get_keys > /dev/null

View File

@ -11,11 +11,11 @@
# if an index file does not exist then
# create index and save to disk
${examples_dir}eccodes_f_grib_index > index_f90.out
${examples_dir}/eccodes_f_grib_index > index_f90.out
diff index_f90.out ${data_dir}/index_f90.ok
# if an index file exists then load the index from it
${examples_dir}eccodes_f_grib_index > index_f90.out
${examples_dir}/eccodes_f_grib_index > index_f90.out
diff index_f90.out ${data_dir}/index_f90.ok
rm -f index.idx index_f90.out

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_grib_keys_iterator > /dev/null
${examples_dir}/eccodes_f_grib_keys_iterator > /dev/null

View File

@ -9,6 +9,6 @@
. ./include.sh
${examples_dir}eccodes_f_grib_multi > multi.out
${examples_dir}/eccodes_f_grib_multi > multi.out
diff multi.out ${data_dir}/multi.ok
rm -f multi.out

View File

@ -9,7 +9,7 @@
. ./include.sh
${examples_dir}eccodes_f_grib_multi_write > /dev/null
${examples_dir}/eccodes_f_grib_multi_write > /dev/null
${tools_dir}/grib_compare ${data_dir}/multi_created.grib2 multi_created.grib2

View File

@ -9,4 +9,4 @@
. ./include.sh
${examples_dir}eccodes_f_grib_nearest > /dev/null
${examples_dir}/eccodes_f_grib_nearest > /dev/null

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}eccodes_f_grib_precision > /dev/null
${examples_dir}/eccodes_f_grib_precision > /dev/null
rm -f ${data_dir}/regular_latlon_surface_prec.grib1

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}eccodes_f_grib_print_data | grep '99200 *values found'
${examples_dir}eccodes_f_grib_print_data_static | grep '99200 *values found'
${examples_dir}/eccodes_f_grib_print_data | grep '99200 *values found'
${examples_dir}/eccodes_f_grib_print_data_static | grep '99200 *values found'

View File

@ -16,12 +16,12 @@ cp ${data_dir}/regular_latlon_surface.grib1 ${data_dir}/regular_latlon_surface.g
# Change the ECCODES_SAMPLES_PATH: put the data dir first
ECCODES_SAMPLES_PATH=${data_dir}:${samples_dir}
export ECCODES_SAMPLES_PATH
${examples_dir}eccodes_f_grib_samples > /dev/null
${examples_dir}/eccodes_f_grib_samples > /dev/null
# Extend the ECCODES_SAMPLES_PATH: put the data dir second
ECCODES_SAMPLES_PATH=${samples_dir}:${data_dir}
export ECCODES_SAMPLES_PATH
${examples_dir}eccodes_f_grib_samples > /dev/null
${examples_dir}/eccodes_f_grib_samples > /dev/null
rm -f f_out.samples.grib1
rm -f ${data_dir}/regular_latlon_surface.grib1.tmpl

View File

@ -12,7 +12,7 @@
OUT_TMP=out.set_bitmap_f.grib
# The input and output files are hardcoded in the example
${examples_dir}eccodes_f_grib_set_bitmap
${examples_dir}/eccodes_f_grib_set_bitmap
x=`${tools_dir}/grib_get -p numberOfDataPoints,numberOfCodedValues,numberOfMissing $OUT_TMP`
[ "$x" = "496 486 10" ]

View File

@ -11,6 +11,6 @@
OUT=temp.f_grib_set_data.out.grib
${examples_dir}eccodes_f_grib_set_data $OUT
${examples_dir}/eccodes_f_grib_set_data $OUT
rm -f $OUT

View File

@ -9,11 +9,11 @@
. ./include.sh
${examples_dir}eccodes_f_grib_set_keys > /dev/null
${examples_dir}/eccodes_f_grib_set_keys > /dev/null
res=`${tools_dir}/grib_get -p centre out.set.grib1`
[ "$res" = "cnmc" ]
${examples_dir}eccodes_f_grib_set_gvc > /dev/null
${examples_dir}/eccodes_f_grib_set_gvc > /dev/null
res=`${tools_dir}/grib_get -p typeOfLevel,NV out_gvc.grib2`
[ "$res" = "generalVertical 6" ]

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}eccodes_f_grib_set_missing > /dev/null
${examples_dir}/eccodes_f_grib_set_missing > /dev/null
rm -f f_out_surface_level.grib2

View File

@ -9,5 +9,5 @@
. ./include.sh
${examples_dir}eccodes_f_grib_set_pv > /dev/null
${examples_dir}/eccodes_f_grib_set_pv > /dev/null
rm -f out.pv.grib1

View File

@ -16,7 +16,7 @@ ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH
tools_dir=@CMAKE_BINARY_DIR@/bin
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
examples_dir=@CMAKE_CURRENT_BINARY_DIR@
# If this environment variable is set, then run the
# executables with valgrind

View File

@ -32,13 +32,13 @@ else
ECCODES_SAMPLES_PATH=$cpath/samples
export ECCODES_SAMPLES_PATH
tools_dir=$cpath/tools
examples_dir=$cpath/examples/F90/
examples_dir=$cpath/examples/F90
data_dir=$cpath/data
samples_dir=$cpath/samples
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/F90/"
examples_dir="valgrind --error-exitcode=1 -q $cpath/examples/F90"
fi
else

View File

@ -13,4 +13,4 @@
# Check program completed successfully. We have to resort to testing
# the output as there is no way in Fortran to set the exit code
#
${examples_dir}eccodes_f_read_from_file | grep 'Passed'
${examples_dir}/eccodes_f_read_from_file | grep 'Passed'

View File

@ -14,7 +14,7 @@ out=out.readmsg.grib
rm -f $out | true
${examples_dir}eccodes_f_read_message > /dev/null
${examples_dir}/eccodes_f_read_message > /dev/null
${tools_dir}/grib_compare $in $out

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}get > /dev/null
${examples_dir}/get > /dev/null

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}get_fortran > /dev/null
${examples_dir}/get_fortran > /dev/null

View File

@ -12,7 +12,7 @@ then
ECCODES_SAMPLES_PATH=$cpath/templates
export ECCODES_SAMPLES_PATH
tools_dir=$cpath/tools
examples_dir=$cpath/examples/
examples_dir=$cpath/examples
data_dir=$cpath/data
else
echo "Skipping test $0"

View File

@ -2,7 +2,7 @@
. ./include.sh
${examples_dir}iterator ${data_dir}/reduced_gaussian_model_level.grib1 > /dev/null
${examples_dir}/iterator ${data_dir}/reduced_gaussian_model_level.grib1 > /dev/null
${examples_dir}iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null
${examples_dir}/iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}iterator_fortran > /dev/null
${examples_dir}/iterator_fortran > /dev/null

View File

@ -2,7 +2,7 @@
. ./include.sh
${examples_dir}keys_iterator ${data_dir}/reduced_latlon_surface.grib1 > /dev/null
${examples_dir}/keys_iterator ${data_dir}/reduced_latlon_surface.grib1 > /dev/null
${examples_dir}keys_iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null
${examples_dir}/keys_iterator ${data_dir}/regular_gaussian_model_level.grib1 > /dev/null

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}keys_iterator_fortran > /dev/null
${examples_dir}/keys_iterator_fortran > /dev/null

View File

@ -7,6 +7,6 @@ then
echo SKIP: $0
exit
fi
${examples_dir}multi > /dev/null
${examples_dir}/multi > /dev/null

View File

@ -8,6 +8,6 @@ then
exit
fi
${examples_dir}multi_fortran > /dev/null
${examples_dir}/multi_fortran > /dev/null

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}precision > /dev/null
${examples_dir}/precision > /dev/null

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}precision_fortran > /dev/null
${examples_dir}/precision_fortran > /dev/null

View File

@ -2,7 +2,7 @@
. ./include.sh
numberOfValues=`${examples_dir}print_data ../data/constant_field.grib1 | grep values | awk '{print $1}'`
numberOfValues=`${examples_dir}/print_data ../data/constant_field.grib1 | grep values | awk '{print $1}'`
if [ $numberOfValues -ne 99200 ]
then

View File

@ -2,7 +2,7 @@
. ./include.sh
numberOfValues=`${examples_dir}print_data_fortran | grep values | awk '{print $1}'`
numberOfValues=`${examples_dir}/print_data_fortran | grep values | awk '{print $1}'`
if [ $numberOfValues -ne 99200 ]
then

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}set > /dev/null
${examples_dir}/set > /dev/null

View File

@ -2,6 +2,6 @@
. ./include.sh
${examples_dir}set_fortran > /dev/null
${examples_dir}/set_fortran > /dev/null

View File

@ -12,7 +12,7 @@ then
ECCODES_SAMPLES_PATH=$cpath/samples
export ECCODES_SAMPLES_PATH
tools_dir=$cpath/tools
examples_dir=$cpath/examples/extra/
examples_dir=$cpath/examples/extra
data_dir=$cpath/data
else
echo "Skipping test $0"

View File

@ -15,7 +15,7 @@ ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH
tools_dir=@CMAKE_BINARY_DIR@/bin
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
examples_dir=@CMAKE_CURRENT_BINARY_DIR@
examples_src=@CMAKE_CURRENT_SOURCE_DIR@/
# use samples from binary dir to test if installation will be correct