@@ -266,34 +266,45 @@ if test "${MPIRUN_MODE}" != "none"; then
266
266
exec=" timeout -s SIGSEGV 4m mpirun --get-stack-traces --timeout 180 --hostfile ${WORKSPACE} /hostfile -np 2 "
267
267
;;
268
268
esac
269
+ singleton=" timeout -s SIGSEGV 1m "
269
270
run_example " ${exec} " ./examples/hello_c
271
+ run_example " ${singleton} " ./examples/hello_c
270
272
run_example " ${exec} " ./examples/ring_c
273
+ run_example " ${singleton} " ./examples/ring_c
271
274
run_example " ${exec} " ./examples/connectivity_c
272
275
if ompi_info --parsable | grep -q bindings:cxx:yes > /dev/null; then
273
276
echo " --> running C++ examples"
274
277
run_example " ${exec} " ./examples/hello_cxx
278
+ run_example " ${singleton} " ./examples/hello_cxx
275
279
run_example " ${exec} " ./examples/ring_cxx
280
+ run_example " ${singleton} " ./examples/ring_cxx
276
281
else
277
282
echo " --> skipping C++ examples"
278
283
fi
279
284
if ompi_info --parsable | grep -q bindings:mpif.h:yes > /dev/null; then
280
285
echo " --> running mpif examples"
281
286
run_example " ${exec} " ./examples/hello_mpifh
287
+ run_example " ${singleton} " ./examples/hello_mpifh
282
288
run_example " ${exec} " ./examples/ring_mpifh
289
+ run_example " ${singleton} " ./examples/ring_mpifh
283
290
else
284
291
echo " --> skipping mpif examples"
285
292
fi
286
293
if ompi_info --parsable | egrep -q bindings:use_mpi:\"\? yes > /dev/null; then
287
294
echo " --> running usempi examples"
288
295
run_example " ${exec} " ./examples/hello_usempi
296
+ run_example " ${singleton} " ./examples/hello_usempi
289
297
run_example " ${exec} " ./examples/ring_usempi
298
+ run_example " ${singleton} " ./examples/ring_usempi
290
299
else
291
300
echo " --> skipping usempi examples"
292
301
fi
293
302
if ompi_info --parsable | grep -q bindings:use_mpi_f08:yes > /dev/null; then
294
303
echo " --> running usempif08 examples"
295
304
run_example " ${exec} " ./examples/hello_usempif08
305
+ run_example " ${singleton} " ./examples/hello_usempif08
296
306
run_example " ${exec} " ./examples/ring_usempif08
307
+ run_example " ${singleton} " ./examples/ring_usempif08
297
308
else
298
309
echo " --> skipping usempif08 examples"
299
310
fi
0 commit comments