mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2520 from akva2/extra_tests
add norne and norne_parallel as ExtraTests
This commit is contained in:
21
tests/run-test.sh
Executable file
21
tests/run-test.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This simply runs a simulator.
|
||||
|
||||
INPUT_DATA_PATH="$1"
|
||||
RESULT_PATH="$2"
|
||||
BINPATH="$3"
|
||||
EXE_NAME="$4"
|
||||
FILENAME="$5"
|
||||
MPI_PROCS="$6"
|
||||
shift 7
|
||||
TEST_ARGS="$@"
|
||||
|
||||
mkdir -p ${RESULT_PATH}
|
||||
if (( ${MPI_PROCS} > 1))
|
||||
then
|
||||
mpirun -np ${MPI_PROCS} ${BINPATH}/${EXE_NAME} ${TEST_ARGS} --output-dir=${RESULT_PATH}
|
||||
else
|
||||
${BINPATH}/${EXE_NAME} ${TEST_ARGS} --output-dir=${RESULT_PATH}
|
||||
fi
|
||||
test $? -eq 0 || exit 1
|
Reference in New Issue
Block a user