Add runner script for tests needing MPI.

The script run-parallel-unitTest.sh takes as its arguments:
 - number of processes (to be passed as -np parameter to mpirun)
 - directory in which to find the binary to be executed
 - remaining arguments form the command line for the test.
This commit is contained in:
Atgeirr Flø Rasmussen 2018-11-13 10:24:37 +01:00
parent 566f6813dd
commit 9fc272fb85

6
tests/run-parallel-unitTest.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# This executes a unit test in parallel.
NP=$1
BDIR=$2
shift 2
mpirun -np $NP $BDIR/bin/$@