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

test/pio_write_run: skip test if grib format is disabled

parent 19d7d233
No related branches found
No related tags found
No related merge requests found
#! @SHELL@
set -e
LOG="${LOG-pio_write.log}"
mpi_task_num="${mpi_task_num-4}"
suffix="${suffix-grb}"
exec 5>&1 6>&2 >"$LOG" 2>&1
../libtool --mode=execute \
@MPI_LAUNCH@ \
-n ${mpi_task_num} ${tool_wrap} ./pio_write ${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-4}"
suffix="${suffix-grb}"
exec 5>&1 6>&2 >"$LOG" 2>&1
../libtool --mode=execute \
@MPI_LAUNCH@ \
-n ${mpi_task_num} ${tool_wrap} ./pio_write ${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