Added test for grib_index_build tool

This commit is contained in:
Shahram Najm 2014-10-15 19:02:50 +01:00
parent 865b881a01
commit b46fc0ac03
2 changed files with 14 additions and 2 deletions

View File

@ -28,3 +28,11 @@ ${test_dir}/read_index ${infile} > index.out
diff index.out ${data_dir}/index.ok
rm -f index.out out.gribidx
# test grib_index_build
#
tempIndex=temp.$$.ix
${tools_dir}grib_index_build -o $tempIndex ${infile} >/dev/null
${tools_dir}grib_dump -D ${tempIndex} > /dev/null
rm -f $tempIndex

View File

@ -25,13 +25,17 @@ char* default_keys = "mars";
grib_option grib_options[]={
/* {id, args, help}, on, command_line, value */
{"f",0,0,0,1,0},
{"o:",0,0,1,1,"gribidx"},
{"o:","output_index_file",
"\n\t\tOutput is written to output_index_file."
"\n\t\tIf an output index file is required and -o is not used, the"
" output index is written to gribidx\n",
1,1,"gribidx"},
{"k:",0,0,0,1,0},
{"V",0,0,0,1,0},
{"T:",0,0,0,1,0},
{"M",0,0,0,1,0},
{"N",0,"Do not compress index."
"\n\t\tBy default the index is compressed to remove keys with only one value.\n",0,1,0}
"\n\t\tBy default the index is compressed to remove keys with only one value.\n",0,1,0}
};
int compress_index;