mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
566f6813dd
commit
9fc272fb85
6
tests/run-parallel-unitTest.sh
Executable file
6
tests/run-parallel-unitTest.sh
Executable 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/$@
|
Loading…
Reference in New Issue
Block a user