From c52a42ac7707c13fad730ac29356553ba86570e6 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 30 Mar 2016 10:37:34 +0100 Subject: [PATCH] Rename test --- .gitignore | 2 +- examples/F90/CMakeLists.txt | 4 ++-- examples/F90/Makefile.am | 4 ++-- examples/F90/{set_gvc.f90 => grib_set_gvc.f90} | 0 examples/F90/grib_set_keys.sh | 5 +++-- 5 files changed, 8 insertions(+), 7 deletions(-) rename examples/F90/{set_gvc.f90 => grib_set_gvc.f90} (100%) diff --git a/.gitignore b/.gitignore index 2f9725516..7593152e7 100644 --- a/.gitignore +++ b/.gitignore @@ -163,7 +163,7 @@ examples/F90/eccodes_f_read_message examples/F90/eccodes_f_samples examples/F90/eccodes_f_grib_set_keys examples/F90/eccodes_f_grib_set_bitmap -examples/F90/eccodes_f_set_gvc +examples/F90/eccodes_f_grib_set_gvc examples/F90/eccodes_f_set_missing examples/F90/eccodes_f_grib_set_pv examples/F90/*.sh.log diff --git a/examples/F90/CMakeLists.txt b/examples/F90/CMakeLists.txt index f9a1e12c9..821ce3139 100644 --- a/examples/F90/CMakeLists.txt +++ b/examples/F90/CMakeLists.txt @@ -75,9 +75,9 @@ ecbuild_add_executable( TARGET f_copy_namespace LINKER_LANGUAGE Fortran LIBS eccodes_f90 eccodes ) -ecbuild_add_executable( TARGET eccodes_f_set_gvc +ecbuild_add_executable( TARGET eccodes_f_grib_set_gvc NOINSTALL - SOURCES set_gvc.f90 + SOURCES grib_set_gvc.f90 CONDITION HAVE_FORTRAN LINKER_LANGUAGE Fortran LIBS eccodes_f90 eccodes diff --git a/examples/F90/Makefile.am b/examples/F90/Makefile.am index 8a70b6f3b..9c98b1dfb 100644 --- a/examples/F90/Makefile.am +++ b/examples/F90/Makefile.am @@ -32,7 +32,7 @@ noinst_PROGRAMS = eccodes_f_grib_index \ eccodes_f_new_from_file \ eccodes_f_copy_namespace \ eccodes_f_get_set_uuid \ - eccodes_f_set_gvc \ + eccodes_f_grib_set_gvc \ eccodes_f_grib_clone \ eccodes_f_bufr_clone \ eccodes_f_bufr_expanded \ @@ -71,7 +71,7 @@ eccodes_f_read_from_file_SOURCES=read_from_file.f90 eccodes_f_new_from_file_SOURCES=new_from_file.f90 eccodes_f_copy_namespace_SOURCES=copy_namespace.f90 eccodes_f_get_set_uuid_SOURCES=get_set_uuid.f90 -eccodes_f_set_gvc_SOURCES=set_gvc.f90 +eccodes_f_grib_set_gvc_SOURCES=grib_set_gvc.f90 eccodes_f_grib_clone_SOURCES=grib_clone.f90 eccodes_f_bufr_attributes_SOURCES=bufr_attributes.f90 eccodes_f_bufr_clone_SOURCES=bufr_clone.f90 diff --git a/examples/F90/set_gvc.f90 b/examples/F90/grib_set_gvc.f90 similarity index 100% rename from examples/F90/set_gvc.f90 rename to examples/F90/grib_set_gvc.f90 diff --git a/examples/F90/grib_set_keys.sh b/examples/F90/grib_set_keys.sh index 92f6c20ec..8fc574f25 100755 --- a/examples/F90/grib_set_keys.sh +++ b/examples/F90/grib_set_keys.sh @@ -11,7 +11,8 @@ ${examples_dir}eccodes_f_grib_set_keys > /dev/null -${examples_dir}eccodes_f_set_gvc > /dev/null -[ -f out_gvc.grib2 ] +${examples_dir}eccodes_f_grib_set_gvc > /dev/null +res=`${tools_dir}/grib_get -p typeOfLevel,NV out_gvc.grib2` +[ "$res" = "generalVertical 6" ] rm -f out.set.grib1 out_gvc.grib2