Commit cfaa95cc authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

Adds fault tolerance tests.



Adds tests for when -disable-auto-cleanup is enabled and a process
dies or calls MPI_Abort. There is no communication in these cases.
Signed-off-by: default avatarWesley Bland <wbland@mcs.anl.gov>
parent c565e663
......@@ -11,7 +11,7 @@ include $(top_srcdir)/Makefile.mtest
ACLOCAL_AMFLAGS = -I confdb
static_subdirs = util attr basic datatype coll comm errhan group info init \
pt2pt rma topo errors manual perf mpi_t
pt2pt rma topo errors manual perf mpi_t ft
all_lang_subdirs = f77 cxx f90
# DIST_SUBDIRS must be a superset of SUBDIRS, and automake must be able to
......
......@@ -1427,6 +1427,7 @@ AC_OUTPUT(maint/testmerge \
errors/f90/Makefile \
errors/f90/errhan/Makefile \
ckpoint/Makefile \
ft/Makefile \
manual/Makefile \
manual/manyconnect \
manual/mpi_t/Makefile \
......
# -*- Mode: Makefile; -*-
# vim: set ft=automake :
#
# (C) 2011 by Argonne National Laboratory.
# See COPYRIGHT in top-level directory.
#
include $(top_srcdir)/Makefile.mtest
## for all programs that are just built from the single corresponding source
## file, we don't need per-target _SOURCES rules, automake will infer them
## correctly
noinst_PROGRAMS = die abort
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2003 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpi.h"
#include <stdio.h>
int main(int argc, char **argv)
{
int rank, size;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
printf("No Errors\n");
if (rank == 0)
MPI_Abort(MPI_COMM_WORLD, MPI_SUCCESS);
while(1)
;
MPI_Finalize();
return 0;
}
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2003 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <mpi.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
int main(int argc, char **argv)
{
int rank, size;
pid_t pid;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank == 1) {
pid = getpid();
kill(pid, SIGSTOP);
}
MPI_Finalize();
if (rank == 0) {
printf("No Errors\n");
}
return 0;
}
die 4 mpiexecarg=-disable-auto-cleanup timeLimit=10
abort 2 mpiexecarg=-disable-auto-cleanup timeLimit=10
......@@ -22,3 +22,4 @@ topo
@errordir@
@threadsdir@
@ckpointdir@
ft
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment