test_xmap_all2all_fail_run.in 624 Bytes
Newer Older
1
#! @SHELL@
2
3
4
set -e
LIBC_FATAL_STDERR_=1
export LIBC_FATAL_STDERR_
5
[ x"@MPI_LAUNCH@" != xtrue ] || exit 77
6
ulimit -c 0
7
8
for setup_size  in small big; do
  for suffix in '' '_f'; do
Thomas Jahns's avatar
Thomas Jahns committed
9
    if diags=`@abs_top_builddir@/libtool --mode=execute \
10
11
        @MPI_LAUNCH@ -n 1 \
        @abs_builddir@/test_xmap_all2all_fail$suffix -s $setup_size \
Thomas Jahns's avatar
Thomas Jahns committed
12
        2>&1`; then
13
14
15
16
      exit 1
    else
      rc=$?
      if [ $rc -ne 3 ]; then
Thomas Jahns's avatar
Thomas Jahns committed
17
18
19
20
21
        if echo x"$diags" | grep -i 'mpi_abort([^,()]*, 3)' >/dev/null ; then
          continue
        else
          exit 1
        fi
22
23
24
25
      fi
    fi
  done
done
26
27
28
29
30
#
# Local Variables:
# mode: sh
# End:
#