Testing: big2gribex

This commit is contained in:
shahramn 2024-05-01 21:53:06 +01:00
parent 6874520bfc
commit 1f335a011e
3 changed files with 30 additions and 15 deletions

View File

@ -228,6 +228,7 @@ if( HAVE_BUILD_TOOLS )
grib_geo_iter
grib_to_json
grib_to_ppm
big2gribex
grib_sub_area_check
grib_list_keys
grib_histogram

23
tests/big2gribex.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
# (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.
#
. ./include.ctest.sh
label="big2gribex_test"
tempGrib=temp.$label.grib
if [ ! -x ${tools_dir}/big2gribex ]; then
exit 0
fi
${tools_dir}/big2gribex $data_dir/test.grib1 $tempGrib
# Clean up
rm -f $tempGrib

View File

@ -8,18 +8,16 @@
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
*/
/*
* Implementation: big2gribex
*
* Description:
*
*/
#include <stdio.h>
#include <stdlib.h>
#include "grib_api.h"
void usage(char*);
static void usage(const char* progname)
{
printf("\nUsage: %s grib_in grib_out\n", progname);
exit(1);
}
int main(int argc, char* argv[])
{
@ -70,12 +68,5 @@ int main(int argc, char* argv[])
exit(1);
}
return 0;
}
void usage(char* progname)
{
printf("\nUsage: %s grib_in grib_out\n", progname);
exit(1);
}