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

Add back seam for PIO output directory.

parent 56989fff
No related branches found
No related tags found
1 merge request!11Consolidation with CDI-PIO (1.8.x)
#!@SHELL@
#! @SHELL@
suffix=grb2
pio_write_args="-w 3"
......
#!@SHELL@
#! @SHELL@
prefix=`echo "$0" | sed 's@.*/@@'`
set -e
case "$0" in
*/*)
prefix=`expr "$0" : '.*/\([^/]*\)$'`
;;
*)
prefix=$0
;;
esac
case x"${CDI_PIO_TEST_DIR+${CDI_PIO_TEST_DIR}}" in
x)
:
;;
*)
prefix="${CDI_PIO_TEST_DIR}/${prefix}"
;;
esac
suffix=${suffix-grb}
if ${mpi_task_num+:} false; then
......@@ -40,6 +56,9 @@ esac
test_variation ()
{
if prefix_dirname=`expr "$prefix" : '\(.*\)/'` ; then
mkdir -p "${prefix_dirname}"
fi
echo "creating data with $1" >&2
variation=$1
@top_builddir@/libtool --mode=execute \
......@@ -48,15 +67,15 @@ test_variation ()
${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
${tool_wrap} ./cksum_read "${prefix}_0.${suffix}" "${prefix}_0.cksum"
echo "checking ${prefix}_1.${suffix}" >&2
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read "${prefix}_1.${suffix}" "${prefix}_1.cksum" || exit 1
${tool_wrap} ./cksum_read "${prefix}_1.${suffix}" "${prefix}_1.cksum"
}
eval "set dummy $variations"; shift
for variation in "$@"; do
test_variation "$variation" || exit 1
test_variation "$variation"
done
#
# Local Variables:
......
#!@SHELL@
#! @SHELL@
test 'x@HAVE_PPM_DIST_ARRAY@' = xyes || exit 77
mpi_task_num=${mpi_task_num-4}
......
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