mirror of https://github.com/ecmwf/eccodes.git
ECC-604: Verify output from test
This commit is contained in:
parent
5e3bbf960c
commit
4b97f0de71
|
@ -35,7 +35,7 @@ static void* process_grib(void* threadID)
|
|||
CODES_CHECK(codes_set_string(h,"indicatorOfUnitOfTimeRange", "s", &str_len),0);
|
||||
CODES_CHECK(codes_set_string(h,"stepUnits", "s", &str_len),0);
|
||||
CODES_CHECK(codes_set_long(h, "endStep", 86400), 0);
|
||||
CODES_CHECK(codes_set_long(h,"centre", 80),0);
|
||||
//CODES_CHECK(codes_set_long(h,"centre", 80),0);
|
||||
|
||||
CODES_CHECK(codes_get_long(h,"endStep", &step),0);
|
||||
CODES_CHECK(codes_get_string(h, "indicatorOfUnitOfTimeRange", mystring, &str_len),0);
|
||||
|
@ -64,6 +64,7 @@ int main(int argc, char** argv)
|
|||
printf("Creating thread %ld\n", i);
|
||||
error = pthread_create(&threads[i], NULL, process_grib, (void *)i);
|
||||
if (error) {
|
||||
assert(0);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,11 @@ time ${test_dir}/grib_ecc-604 par $input $NUM_THREADS $NUM_ITER
|
|||
# break
|
||||
# fi
|
||||
#done
|
||||
echo "Checking every output file is identical..."
|
||||
set +x
|
||||
res=`cksum $OUTPUT/output_file_* | awk '{print $1}' | sort -u`
|
||||
set -x
|
||||
[ "$res" = "2572910830" ]
|
||||
|
||||
# Clean up
|
||||
cd $test_dir
|
||||
|
|
Loading…
Reference in New Issue