From 01701feb8426abcb7c6d0a5aa0988afad7650872 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 31 Jul 2020 15:05:31 +0100 Subject: [PATCH] Testing: move old deprecated code --- {tests => examples/deprecated}/readvalues.F | 0 tests/migration_ml.sh | 36 --------------------- 2 files changed, 36 deletions(-) rename {tests => examples/deprecated}/readvalues.F (100%) delete mode 100755 tests/migration_ml.sh diff --git a/tests/readvalues.F b/examples/deprecated/readvalues.F similarity index 100% rename from tests/readvalues.F rename to examples/deprecated/readvalues.F diff --git a/tests/migration_ml.sh b/tests/migration_ml.sh deleted file mode 100755 index 03a2dd36f..000000000 --- a/tests/migration_ml.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -# --- setup the environment -. ./include.sh - -src=${data_dir}/essential_ml/grib1_ecmwf -dest=${data_dir}/essential_ml/grib2_ecmwf - -if [ ! -d $src ]; then - echo "Data source folder does not exist: '$src'" - exit 1 -fi - -mkdir -p $dest - -# --- convert to grib 2 - -for file in `ls $src/*.grib`; do - f=`basename $file` - ${tools_dir}/grib_set -s edition=2 $file $dest/$f - - if [ ! $? == 0 ]; then - echo "FAIL" - exit 1 - fi -done - -# --- compare the results - -set +e # don't fail on error for now -for file in `ls $src/*.grib`; do - name=`basename $file` - echo "Comparing $name" - ${tools_dir}/grib_compare -c mars:n,name,shortName $src/$name $dest/$name -done -set -e