mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
update test driver to match opm_add_test
This commit is contained in:
parent
dda940686c
commit
0fa24f7711
@ -11,7 +11,7 @@ MY_DIR="$(dirname "$0")"
|
|||||||
usage() {
|
usage() {
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
echo
|
echo
|
||||||
echo "runTest.sh TEST_TYPE [TEST_ARGS]"
|
echo "runTest.sh TEST_TYPE -e binary -- [TEST_ARGS]"
|
||||||
echo "where TEST_TYPE can either be --plain, --simulation, --spe1 or --parallel-simulation=\$NUM_CORES (is '$TEST_TYPE')."
|
echo "where TEST_TYPE can either be --plain, --simulation, --spe1 or --parallel-simulation=\$NUM_CORES (is '$TEST_TYPE')."
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -37,8 +37,11 @@ clipToHelpMessage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST_TYPE="$1"
|
TEST_TYPE="$1"
|
||||||
TEST_NAME="$2"
|
if test "$2" != "-e"; then
|
||||||
TEST_ARGS="${@:3:100}"
|
echo "Expects second option to be -e"
|
||||||
|
fi
|
||||||
|
TEST_NAME="$3"
|
||||||
|
TEST_ARGS="${@:5:100}"
|
||||||
|
|
||||||
# make sure we have at least 2 parameters
|
# make sure we have at least 2 parameters
|
||||||
if test "$#" -lt 2; then
|
if test "$#" -lt 2; then
|
||||||
|
Loading…
Reference in New Issue
Block a user