From 916026d682c52289b34b96d9d691e0fdd218162a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 16 Jun 2016 10:44:01 +0100 Subject: [PATCH] Remove obsolete stuff (mars_tests) --- mars_tests/Makefile.am | 12 --------- mars_tests/include.sh | 50 ----------------------------------- mars_tests/ls.sh | 60 ------------------------------------------ 3 files changed, 122 deletions(-) delete mode 100755 mars_tests/Makefile.am delete mode 100644 mars_tests/include.sh delete mode 100755 mars_tests/ls.sh diff --git a/mars_tests/Makefile.am b/mars_tests/Makefile.am deleted file mode 100755 index 7a8deb091..000000000 --- a/mars_tests/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -if WITH_MARS_TESTS - TESTS = ls.sh - - noinst_PROGRAMS = - - LDADD = $(top_builddir)/src/libgrib_api.a $(EMOS_LIB) - - INCLUDES = -I$(top_builddir)/src - - EXTRA_DIST = $(TESTS) - -endif diff --git a/mars_tests/include.sh b/mars_tests/include.sh deleted file mode 100644 index 426cb7525..000000000 --- a/mars_tests/include.sh +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 2005-2016 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. - -set -ea - -echo -echo "TEST: $0" - -data_dir="" - -# save current working dir -save=`pwd` - -if [ -z "${data_dir}" ] -then - cd ../ - cpath=`pwd` - ECCODES_DEFINITION_PATH=$cpath/definitions - export ECCODES_DEFINITION_PATH - ECCODES_SAMPLES_PATH=$cpath/samples - export ECCODES_SAMPLES_PATH - tools_dir=$cpath/tools/ - tigge_dir=$cpath/tigge/ - data_dir=$cpath/data - test_dir=$cpath/tests - def_dir=$cpath/definitions -else - tools_dir="" - tigge_dir="" -fi - -if [ -z "${GRIB_API_INCLUDE}" ] -then - GRIB_API_INCLUDE=`pwd`/src -fi - -if [ -z "${GRIB_API_LIB}" ] -then - GRIB_API_LIB=`pwd`/src -fi - -# go back to current working dir -cd $save - -set -u diff --git a/mars_tests/ls.sh b/mars_tests/ls.sh deleted file mode 100755 index e0ecff630..000000000 --- a/mars_tests/ls.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# Copyright 2005-2016 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. - -. ./include.sh - -rm -f log | true -workdir=`pwd` - -cd ${data_dir} -infile=regular_gaussian_model_level.grib1 - -${tools_dir}grib_ls -P count $infile > log -${tools_dir}grib_ls -p count,step $infile >> log -${tools_dir}grib_ls $infile >> log -${tools_dir}grib_ls -l 0,0,1 $infile >> log -${tools_dir}grib_get -l 0,0,1 $infile >> log -${tools_dir}grib_get -p count,step $infile >> log -${tools_dir}grib_get -P count $infile >> log - -files=" reduced_gaussian_lsm.grib1 -reduced_gaussian_model_level.grib1 -reduced_gaussian_model_level.grib2 -reduced_gaussian_pressure_level.grib1 -reduced_gaussian_pressure_level.grib2 -reduced_gaussian_pressure_level_constant.grib1 -reduced_gaussian_pressure_level_constant.grib2 -reduced_gaussian_sub_area.grib1 -reduced_gaussian_sub_area.grib2 -reduced_gaussian_surface.grib1 -reduced_gaussian_surface.grib2 -reduced_latlon_surface.grib1 -reduced_latlon_surface.grib2 -regular_gaussian_model_level.grib1 -regular_gaussian_model_level.grib2 -regular_gaussian_pressure_level.grib1 -regular_gaussian_pressure_level.grib2 -regular_gaussian_pressure_level_constant.grib1 -regular_gaussian_pressure_level_constant.grib2 -regular_gaussian_surface.grib1 -regular_gaussian_surface.grib2 -regular_latlon_surface.grib1 -regular_latlon_surface.grib2 -" - -for file in $files -do - echo $file >> log - ${tools_dir}grib_ls -l 40,28 $file | grep index | awk '{print $4;}' >> log -done - -diff log ls.log -rm -f log - -cd $workdir