Skip to content
Snippets Groups Projects
Commit fe516429 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Use pio_write_run also for 2d-decomposed test.

parent 54df2ec8
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,8 @@ LOG="${LOG-pio_write_deco2d.log}"
if [ @ENABLE_GRIB@ = yes ]; then
mpi_task_num="${mpi_task_num-6}"
suffix="${suffix-grb}"
exec 5>&1 6>&2 >"$LOG" 2>&1
../libtool --mode=execute @MPI_LAUNCH@ -n ${mpi_task_num} \
${tool_wrap} ./pio_write_deco2d ${pio_write_args}
exec 2>&6 1>&5 5>&- 6>&-
../libtool --mode=execute \
${tool_wrap} ./cksum_read example_0.${suffix} example_0.cksum
../libtool --mode=execute \
${tool_wrap} ./cksum_read example_1.${suffix} example_1.cksum
\rm "$LOG"
pio_write=./pio_write_deco2d
. ./pio_write_run
else
# skip tests for unsupported formats
exit 77
......
#! @SHELL@
set -e
LOG=${LOG-pio_write.log}
if [ @ENABLE_GRIB@ != yes ]; then
# skip tests for unsupported formats
exit 77
fi
mpi_task_num=${mpi_task_num-4}
prefix=${CDI_TEST_PREFIX-example}
suffix=${suffix-grb}
pio_write=${pio_write-./pio_write}
case $suffix in
grb)
if [ @ENABLE_GRIB@ != yes ]; then
# skip tests for unsupported formats
exit 77
fi
;;
esac
if [ "@USE_MPI@" = yes ]; then
variations="-qno-batch-rma -qcache-redists -qcreate-curvilinear-grid -qpreset-decomposition=true"
else
......@@ -23,7 +28,7 @@ test_variation()
variation=$1
../libtool --mode=execute \
@MPI_LAUNCH@ \
-n ${mpi_task_num} ${tool_wrap} ./pio_write ${pio_write_args} -s 7 \
-n ${mpi_task_num} ${tool_wrap} ${pio_write} ${pio_write_args} -s 7 \
${variation} ${CDI_TEST_PREFIX+"-qprefix=${CDI_TEST_PREFIX}"}
echo "checking ${prefix}_0.$suffix" >&2
../libtool --mode=execute \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment