ECC-1352: CCSDS with multi-threaded tests

This commit is contained in:
Shahram Najm 2022-03-01 12:12:40 +00:00
parent ada56cdb30
commit 559a25dd39
2 changed files with 12 additions and 9 deletions

View File

@ -54,7 +54,6 @@ static int encode_file(char* input_file, char* output_file)
grib_handle* source_handle = NULL;
const void* buffer = NULL;
int err = 0;
size_t str_len = 0;
FILE* in = fopen(input_file, "rb");
FILE* out = fopen(output_file, "wb");

View File

@ -21,14 +21,18 @@ done
rm -f temp.$label.out_*.grib
if [ $HAVE_AEC -eq 1 ]; then
# CCSDS packing
# --------------
${test_dir}/grib_encode_pthreads $ECCODES_SAMPLES_PATH/ccsds_grib2.tmpl
for f in temp.$label.out_*.grib; do
${tools_dir}/grib_get -p min,max,avg $f > $f.ccsds.txt
diff $f.simple.txt $f.ccsds.txt
rm $f.simple.txt $f.ccsds.txt
done
fi
# CCSDS packing
# --------------
${test_dir}/grib_encode_pthreads $ECCODES_SAMPLES_PATH/ccsds_grib2.tmpl
# Clean up
for f in temp.$label.out_*.grib; do
${tools_dir}/grib_get -p min,max,avg $f > $f.ccsds.txt
diff $f.simple.txt $f.ccsds.txt
rm $f.simple.txt $f.ccsds.txt
rm -f $f.simple.txt $f.ccsds.txt temp.$label.out_*.grib
done
rm -f temp.$label.out_*.grib