perform some more analysis on regression test failures

This commit is contained in:
Arne Morten Kvarving
2017-02-16 16:00:42 +01:00
parent d2730175a0
commit 6183e78402
6 changed files with 180 additions and 5 deletions
+14 -1
View File
@@ -1,5 +1,10 @@
#!/bin/bash
set -e
# This runs the initialization step of a simulator,
# then compares the resulting INIT file against a reference.
# This is meant to track regressions in INIT file writing.
# Useful for models that are too large to do simulation on
# as a regression test.
INPUT_DATA_PATH="$1"
RESULT_PATH="$2"
@@ -19,4 +24,12 @@ cd ${RESULT_PATH}
${BINPATH}/${EXE_NAME} ${TEST_ARGS} nosim=true
cd ..
ecode=0
${COMPARE_ECL_COMMAND} -t INIT ${RESULT_PATH}/${FILENAME} ${INPUT_DATA_PATH}/opm-simulation-reference/${FILENAME} ${ABS_TOL} ${REL_TOL}
if [ $? -ne 0 ]
then
ecode=1
`dirname $0`/analyze_ecl_failure.sh ${COMPARE_ECL_COMMAND} INIT ${RESULT_PATH}/${FILENAME} ${INPUT_DATA_PATH}/opm-simulation-reference/${FILENAME} ${ABS_TOL} ${REL_TOL}
fi
exit $ecode