Merge pull request #1408 from atgeirr/add-nowells-test

Add integration test with no wells.
This commit is contained in:
Atgeirr Flø Rasmussen 2018-02-15 13:33:58 +01:00 committed by GitHub
commit e3e4f3acac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -181,6 +181,13 @@ add_test_compareECLFiles(CASENAME spe1
ABS_TOL ${abs_tol} ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}) REL_TOL ${rel_tol})
add_test_compareECLFiles(CASENAME spe1_nowells
FILENAME SPE1CASE2_NOWELLS
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
DIR spe1)
foreach(SIM flow flow_legacy) foreach(SIM flow flow_legacy)
add_test_compareECLFiles(CASENAME spe3 add_test_compareECLFiles(CASENAME spe3
FILENAME SPE3CASE1 FILENAME SPE3CASE1

View File

@ -20,7 +20,7 @@ copyToReferenceDir () {
} }
tests=${@:2} tests=${@:2}
test -z "$tests" && tests="spe11 spe12 spe12p spe1oilgas spe3 spe5 spe9 norne_init msw_2d_h msw_3d_hfa polymer2d spe9group" test -z "$tests" && tests="spe11 spe12 spe12p spe1oilgas spe1nowells spe3 spe5 spe9 norne_init msw_2d_h msw_3d_hfa polymer2d spe9group"
if grep -q -i "norne " <<< $ghprbCommentBody if grep -q -i "norne " <<< $ghprbCommentBody
then then
if test -d $WORKSPACE/deps/opm-data/norne/flow if test -d $WORKSPACE/deps/opm-data/norne/flow
@ -80,6 +80,15 @@ for test_name in ${tests}; do
EGRID INIT SMSPEC UNRST UNSMRY EGRID INIT SMSPEC UNRST UNSMRY
fi fi
if grep -q "spe1nowells" <<< $test_name
then
copyToReferenceDir \
$configuration/build-opm-simulators/tests/results/flow+spe1_nowells/ \
$OPM_DATA_ROOT/spe1/opm-simulation-reference/flow \
SPE1CASE2_NOWELLS \
EGRID INIT SMSPEC UNRST UNSMRY
fi
if grep -q "msw_2d_h" <<< $test_name if grep -q "msw_2d_h" <<< $test_name
then then
copyToReferenceDir \ copyToReferenceDir \