Skip to content
Snippets Groups Projects
Commit 697a905f authored by Markus Blatt's avatar Markus Blatt
Browse files

only start mpi environment once.

[[Imported from SVN: r634]]
parent c2f998a5
No related branches found
No related tags found
No related merge requests found
# $Id$
RUNNERS = run-indices run-syncer run-vectorcommtest
EXTRA_DIST = $(RUNNERS)
EXTRA_DIST = perhapsstartmpi perhapsstopmpi
if MPI
INDEXPROG = indicestest syncertest vectorcommtest
SELECTPROG = selectiontest
INDEXRUN = $(RUNNERS)
INDEXRUN = $(INDEXPROG)
endif
# which tests where program to build and run are equal
NORMALTESTS = matrixutilstest bvectortest indexsettest $(SELECTPROG)
# list of tests to run (indicestest is special case)
TESTS = $(NORMALTESTS) $(INDEXRUN)
TESTS = $(NORMALTESTS) perhapsstartmpi $(INDEXRUN) perhapsstopmpi
# programs just to build when "make check" is used
check_PROGRAMS = $(NORMALTESTS) $(INDEXPROG)
......
......@@ -2,16 +2,6 @@
# $ Id: $
# run lamboot if possible
if which lamboot; then
if which lamboot>/dev/null; then
lamboot 2>&1 > /dev/null
fi
# start test and abort on fail
set -e
mpirun -np 1 vectorcommtest
set +e
# possibly stop LAM again
if which lamhalt; then
lamhalt 2>&1 > /dev/null
fi
#!/bin/sh
# $ Id: $
# run lamboot if possible
if which lamboot; then
lamboot 2>&1 > /dev/null
fi
# start test and abort on fail
set -e
mpirun -np 1 indicestest
set +e
# possibly stop LAM again
if which lamhalt; then
if which lamhalt > /dev/null; then
lamhalt 2>&1 > /dev/null
sleep 2
fi
#!/bin/sh
# $Id$
# run lamboot if possible
if which lamboot; then
lamboot 2>&1 > /dev/null
fi
# start test and abort on fail
set -e
mpirun -np 1 syncertest
set +e
# possibly stop LAM again
if which lamhalt; then
lamhalt 2>&1 > /dev/null
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment