Skip to content
Snippets Groups Projects
Commit d71a49a4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

test/pio_write_deco2d_run: skip test if grib format is disabled

parent 1695dfc1
No related branches found
No related tags found
No related merge requests found
#! @SHELL@
set -e
LOG="${LOG-pio_write_deco2d.log}"
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"
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"
else
# skip tests for unsupported formats
exit 77
fi
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