Skip to content

Commit 04663ce

Browse files
authored
Merge pull request #69 from jsquyres/pr/add-singleton-runs
jenkins/ompi-build-script: add singletons
2 parents b8eee2b + 8396ed9 commit 04663ce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

jenkins/open-mpi-build-script.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,34 +266,45 @@ if test "${MPIRUN_MODE}" != "none"; then
266266
exec="timeout -s SIGSEGV 4m mpirun --get-stack-traces --timeout 180 --hostfile ${WORKSPACE}/hostfile -np 2 "
267267
;;
268268
esac
269+
singleton="timeout -s SIGSEGV 1m "
269270
run_example "${exec}" ./examples/hello_c
271+
run_example "${singleton}" ./examples/hello_c
270272
run_example "${exec}" ./examples/ring_c
273+
run_example "${singleton}" ./examples/ring_c
271274
run_example "${exec}" ./examples/connectivity_c
272275
if ompi_info --parsable | grep -q bindings:cxx:yes >/dev/null; then
273276
echo "--> running C++ examples"
274277
run_example "${exec}" ./examples/hello_cxx
278+
run_example "${singleton}" ./examples/hello_cxx
275279
run_example "${exec}" ./examples/ring_cxx
280+
run_example "${singleton}" ./examples/ring_cxx
276281
else
277282
echo "--> skipping C++ examples"
278283
fi
279284
if ompi_info --parsable | grep -q bindings:mpif.h:yes >/dev/null; then
280285
echo "--> running mpif examples"
281286
run_example "${exec}" ./examples/hello_mpifh
287+
run_example "${singleton}" ./examples/hello_mpifh
282288
run_example "${exec}" ./examples/ring_mpifh
289+
run_example "${singleton}" ./examples/ring_mpifh
283290
else
284291
echo "--> skipping mpif examples"
285292
fi
286293
if ompi_info --parsable | egrep -q bindings:use_mpi:\"\?yes >/dev/null; then
287294
echo "--> running usempi examples"
288295
run_example "${exec}" ./examples/hello_usempi
296+
run_example "${singleton}" ./examples/hello_usempi
289297
run_example "${exec}" ./examples/ring_usempi
298+
run_example "${singleton}" ./examples/ring_usempi
290299
else
291300
echo "--> skipping usempi examples"
292301
fi
293302
if ompi_info --parsable | grep -q bindings:use_mpi_f08:yes >/dev/null; then
294303
echo "--> running usempif08 examples"
295304
run_example "${exec}" ./examples/hello_usempif08
305+
run_example "${singleton}" ./examples/hello_usempif08
296306
run_example "${exec}" ./examples/ring_usempif08
307+
run_example "${singleton}" ./examples/ring_usempif08
297308
else
298309
echo "--> skipping usempif08 examples"
299310
fi

0 commit comments

Comments
 (0)