Skip to content
Snippets Groups Projects
Commit bd362af6 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Use pio_write_run also for 2d-decomposed test.

parent 1f39512d
No related branches found
No related tags found
No related merge requests found
#!@SHELL@
@ENABLE_MPI_FALSE@exit 77
test 'x@MPI_LAUNCH@' != xtrue || exit 77
mpi_task_num="${mpi_task_num-6}"
prefix=${0##*/}
suffix="${suffix-grb}"
mpi_task_num="${mpi_task_num-6}"
pio_write=./pio_write_deco2d_parallel
case ${suffix} in
grb)
test 'x@ENABLE_GRIB@' = xyes || exit 77
;;
grb2)
@HAVE_LIBGRIB_API_FALSE@exit 77
;;
nc|nc2)
test 'x@ENABLE_NETCDF@' = xyes || exit 77
;;
nc4)
test 'x@ENABLE_NETCDF@' = xyes || exit 77
test 'x@ENABLE_NC4@' = xyes || exit 77
;;
*)
echo "Unsupported suffix '${suffix}'" >&2
exit 1
;;
esac
@top_builddir@/libtool --mode=execute @MPI_LAUNCH@ -n ${mpi_task_num} \
${tool_wrap_mpi} ./pio_write_deco2d_parallel "-qprefix=${prefix}" -f ${suffix} ${pio_write_args} || exit 1
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_0.${suffix}" "${prefix}_0.cksum" || exit 1
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_1.${suffix}" "${prefix}_1.cksum" || exit 1
. ./pio_write_run_parallel.test
#
# Local Variables:
# mode: sh
......
#!@SHELL@
prefix=${0##*/}
suffix="${suffix-grb}"
pio_write=./pio_write_deco2d_serial
case ${suffix} in
grb)
test 'x@ENABLE_GRIB@' = xyes || exit 77
;;
grb2)
@HAVE_LIBGRIB_API_FALSE@exit 77
;;
nc|nc2)
test 'x@ENABLE_NETCDF@' = xyes || exit 77
;;
nc4)
test 'x@ENABLE_NETCDF@' = xyes || exit 77
test 'x@ENABLE_NC4@' = xyes || exit 77
;;
*)
echo "Unsupported suffix '${suffix}'" >&2
exit 1
;;
esac
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./pio_write_deco2d_serial "-qprefix=${prefix}" -f ${suffix} ${pio_write_args} || exit 1
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_0.${suffix}" "${prefix}_0.cksum" || exit 1
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_1.${suffix}" "${prefix}_1.cksum" || exit 1
. ./pio_write_run_serial
#
# Local Variables:
# mode: sh
......
......@@ -6,6 +6,7 @@ mpi_task_num="${mpi_task_num-4}"
prefix=${0##*/}
suffix="${suffix-grb}"
pio_write=${pio_write-./pio_write_parallel}
case ${suffix} in
grb)
......@@ -36,7 +37,7 @@ test_variation()
@top_builddir@/libtool --mode=execute \
@MPI_LAUNCH@ \
-n ${mpi_task_num} ${tool_wrap_mpi} \
./pio_write_parallel "-qprefix=${prefix}" -f ${suffix} ${pio_write_args} -s 7 ${variation} || exit 1
${pio_write} "-qprefix=${prefix}" -f ${suffix} ${pio_write_args} -s 7 ${variation} || exit 1
echo "checking ${prefix}_0.${suffix}" >&2
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_0.${suffix}" "${prefix}_0.cksum" || exit 1
......
......@@ -2,6 +2,7 @@
prefix=${0##*/}
suffix="${suffix-grb}"
pio_write=${pio_write-./pio_write_serial}
case ${suffix} in
grb)
......@@ -30,7 +31,7 @@ test_variation()
echo "creating data with $1" >&2
variation=$1
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./pio_write_serial "-qprefix=${prefix}" -f ${suffix} ${pio_write_args} -s 7 ${variation} || exit 1
${tool_wrap} ${pio_write} "-qprefix=${prefix}" -f ${suffix} ${pio_write_args} -s 7 ${variation} || exit 1
echo "checking ${prefix}_0.${suffix}" >&2
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_0.${suffix}" "${prefix}_0.cksum" || exit 1
......
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