mirror of https://github.com/ecmwf/eccodes.git
Testing: Rename
This commit is contained in:
parent
fc656b2deb
commit
03400dcb2f
|
@ -271,16 +271,16 @@ if( ENABLE_EXTRA_TESTS AND HAVE_ECCODES_THREADS )
|
|||
TYPE SCRIPT
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_encode_pthreads.sh )
|
||||
|
||||
foreach( test grib_ecc-604 grib_ecc-604-encode bufr_ecc-604 )
|
||||
foreach( test grib_threads_ecc-604 grib_threads_ecc-604-encode bufr_ecc-604 )
|
||||
ecbuild_add_executable( TARGET ${test}
|
||||
NOINSTALL
|
||||
SOURCES ${test}.c
|
||||
LIBS eccodes )
|
||||
endforeach()
|
||||
ecbuild_add_test( TARGET eccodes_t_grib_ecc-604
|
||||
ecbuild_add_test( TARGET eccodes_t_grib_threads_ecc-604
|
||||
TYPE SCRIPT
|
||||
TEST_DEPENDS eccodes_download_gribs
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_ecc-604.sh )
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_threads_ecc-604.sh )
|
||||
ecbuild_add_test( TARGET eccodes_t_bufr_ecc-604
|
||||
TYPE SCRIPT
|
||||
TEST_DEPENDS eccodes_download_bufrs
|
||||
|
|
|
@ -10,12 +10,13 @@
|
|||
|
||||
. ./include.sh
|
||||
|
||||
label="grib_ecc-604"
|
||||
label="grib_threads_ecc-604"
|
||||
temp_dir=tempdir.${label}
|
||||
|
||||
NUM_THREADS=3
|
||||
NUM_ITER=10
|
||||
OUTPUT=output
|
||||
PROG="${test_dir}/grib_threads_ecc-604"
|
||||
|
||||
validate()
|
||||
{
|
||||
|
@ -36,19 +37,19 @@ process()
|
|||
# Test 01: Clone + output
|
||||
# ------------------------
|
||||
rm -fr $OUTPUT; mkdir -p $OUTPUT
|
||||
time ${test_dir}/grib_ecc-604 -c -w par $input $NUM_THREADS $NUM_ITER
|
||||
time $PROG -c -w par $input $NUM_THREADS $NUM_ITER
|
||||
validate
|
||||
|
||||
# Test 02: No clone + output
|
||||
# --------------------------
|
||||
rm -fr $OUTPUT; mkdir -p $OUTPUT
|
||||
time ${test_dir}/grib_ecc-604 -w par $input $NUM_THREADS $NUM_ITER
|
||||
time $PROG -w par $input $NUM_THREADS $NUM_ITER
|
||||
validate
|
||||
|
||||
# Test 03: Clone + dump + no output
|
||||
# ---------------------------------
|
||||
rm -fr $OUTPUT
|
||||
time ${test_dir}/grib_ecc-604 -c -d par $input $NUM_THREADS $NUM_ITER
|
||||
time $PROG -c -d par $input $NUM_THREADS $NUM_ITER
|
||||
# Nothing to validate as there is no output
|
||||
}
|
||||
###################################################
|
Loading…
Reference in New Issue