mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 21:39:09 -06:00
Use cmake testname in dictionary of tests in update_reference_data.sh
This commit is contained in:
parent
15be2f32d4
commit
1dc586272b
@ -46,94 +46,93 @@ declare -A tests
|
||||
# The tests are listed in a dictionary mapping name of the test to the commands
|
||||
# used to run the test:
|
||||
#
|
||||
# tests[testname]="binary dirname casename [cmake_testname]"
|
||||
# tests[cmake_testname]="binary dirname SIMULATION_CASE
|
||||
#
|
||||
# By default the testname and dirname should be the same, but if you have
|
||||
# several test datasets in the same directory this will lead to non unique test
|
||||
# names in the cmake setup; to avoid that you can supply an alternative testname
|
||||
# to be used by cmake as an optional fourth argument.
|
||||
# The key in the dictionary must agree with the name given to the test when
|
||||
# registering it with cmake in compareEclFiles.cmake. The SIMULATION_CASE should
|
||||
# be the basename of the .DATA file used for the simulation.
|
||||
tests[spe1]="flow spe1 SPE1CASE1"
|
||||
tests[spe12]="flow spe1 SPE1CASE2"
|
||||
tests[spe12p]="flow spe1 SPE1CASE2_2P spe1_2p"
|
||||
tests[spe1oilgas]="flow spe1 SPE1CASE2_OILGAS spe1_oilgas"
|
||||
tests[spe1nowells]="flow spe1 SPE1CASE2_NOWELLS spe1_nowells"
|
||||
tests[spe1thermal]="flow spe1 SPE1CASE2_THERMAL spe1_thermal"
|
||||
tests[spe1thermal_watvisc]="flow spe1 SPE1CASE2_THERMAL_WATVISC spe1_thermal_watvisc"
|
||||
tests[spe1rockcomp]="flow spe1 SPE1CASE2_ROCK2DTR spe1_rockcomp"
|
||||
tests[spe1brine]="flow spe1_brine SPE1CASE1_BRINE spe1_brine"
|
||||
tests[ctaquifer_2d_oilwater]="flow aquifer-oilwater 2D_OW_CTAQUIFER ctaquifer_2d_oilwater"
|
||||
tests[fetkovich_2d]="flow aquifer-fetkovich 2D_FETKOVICHAQUIFER fetkovich_2d"
|
||||
tests[msw_2d_h]="flow msw_2d_h 2D_H__"
|
||||
tests[spe1_2p]="flow spe1 SPE1CASE2_2P"
|
||||
tests[spe1_oilgas]="flow spe1 SPE1CASE2_OILGAS"
|
||||
tests[spe1_nowells]="flow spe1 SPE1CASE2_NOWELLS"
|
||||
tests[spe1_thermal]="flow spe1 SPE1CASE2_THERMAL"
|
||||
tests[spe1_thermal_watvisc]="flow spe1 SPE1CASE2_THERMAL_WATVISC"
|
||||
tests[spe1_rockcomp]="flow spe1 SPE1CASE2_ROCK2DTR"
|
||||
tests[spe1_brine]="flow spe1_brine SPE1CASE1_BRINE"
|
||||
tests[ctaquifer_2d_oilwater]="flow aquifer-oilwater 2D_OW_CTAQUIFER"
|
||||
tests[fetkovich_2d]="flow aquifer-fetkovich 2D_FETKOVICHAQUIFER"
|
||||
tests[msw_2d_h]="flow msw_2d_h"
|
||||
tests[msw_3d_hfa]="flow msw_3d_hfa 3D_MSW"
|
||||
tests[polymer_oilwater]="flow polymer_oilwater 2D_OILWATER_POLYMER"
|
||||
tests[polymer2d]="flow polymer_simple2D 2D_THREEPHASE_POLY_HETER"
|
||||
tests[polymer_simple2D]="flow polymer_simple2D 2D_THREEPHASE_POLY_HETER"
|
||||
tests[spe3]="flow spe3 SPE3CASE1"
|
||||
tests[spe5]="flow spe5 SPE5CASE1"
|
||||
tests[spe9group]="flow spe9group SPE9_CP_GROUP"
|
||||
tests[spe9]="flow spe9 SPE9_CP_SHORT"
|
||||
tests[wecon_wtest]="flow wecon_wtest 3D_WECON"
|
||||
tests[spe1_metric_vfp1]="flow vfpprod_spe1 SPE1CASE1_METRIC_VFP1 spe1_metric_vfp1"
|
||||
tests[base_model_1]="flow model1 BASE_MODEL_1 base_model_1"
|
||||
tests[msw_model_1]="flow model1 MSW_MODEL_1 msw_model_1"
|
||||
tests[faults_model_1]="flow model1 FAULTS_MODEL_1 faults_model_1"
|
||||
tests[base_model2]="flow model2 0_BASE_MODEL2 base_model2"
|
||||
tests[0a1_grpctl_stw_model2]="flow model2 0A1_GRCTRL_LRAT_ORAT_BASE_MODEL2_STW 0a1_grpctl_stw_model2"
|
||||
tests[0a1_grpctl_msw_model2]="flow model2 0A1_GRCTRL_LRAT_ORAT_BASE_MODEL2_MSW 0a1_grpctl_msw_model2"
|
||||
tests[0a2_grpctl_stw_model2]="flow model2 0A2_GRCTRL_LRAT_ORAT_GGR_BASE_MODEL2_STW 0a2_grpctl_stw_model2"
|
||||
tests[0a2_grpctl_msw_model2]="flow model2 0A2_GRCTRL_LRAT_ORAT_GGR_BASE_MODEL2_MSW 0a2_grpctl_msw_model2"
|
||||
tests[0a3_grpctl_stw_model2]="flow model2 0A3_GRCTRL_LRAT_LRAT_BASE_MODEL2_STW 0a3_grpctl_stw_model2"
|
||||
tests[0a3_grpctl_msw_model2]="flow model2 0A3_GRCTRL_LRAT_LRAT_BASE_MODEL2_MSW 0a3_grpctl_msw_model2"
|
||||
tests[0a4_grpctl_stw_model2]="flow model2 0A4_GRCTRL_LRAT_LRAT_GGR_BASE_MODEL2_STW 0a4_grpctl_stw_model2"
|
||||
tests[0a4_grpctl_msw_model2]="flow model2 0A4_GRCTRL_LRAT_LRAT_GGR_BASE_MODEL2_MSW 0a4_grpctl_msw_model2"
|
||||
tests[multregt_model2]="flow model2 1_MULTREGT_MODEL2 multregt_model2"
|
||||
tests[multxyz_model2]="flow model2 2_MULTXYZ_MODEL2 multxyz_model2"
|
||||
tests[multflt_model2]="flow model2 3_MULTFLT_MODEL2 multflt_model2"
|
||||
tests[multpvv_model2]="flow model2 4_MINPVV_MODEL2 multpvv_model2"
|
||||
tests[swatinit_model2]="flow model2 5_SWATINIT_MODEL2 swatinit_model2"
|
||||
tests[endscale_model2]="flow model2 6_ENDSCALE_MODEL2 endscale_model2"
|
||||
tests[hysteresis_model2]="flow model2 7_HYSTERESIS_MODEL2 hysteresis_model2"
|
||||
tests[multiply_tranxyz_model2]="flow model2 8_MULTIPLY_TRANXYZ_MODEL2 multiply_tranxyz_model2"
|
||||
tests[editnnc_model2]="flow model2 9_EDITNNC_MODEL2 editnnc_model2"
|
||||
tests[9_1a_grpctl_stw_model2]="flow model2 9_1A_DEPL_MAX_RATE_MIN_BHP_STW 9_1a_grpctl_stw_model2"
|
||||
tests[9_1a_grpctl_msw_model2]="flow model2 9_1A_DEPL_MAX_RATE_MIN_BHP_MSW 9_1a_grpctl_msw_model2"
|
||||
tests[9_1b_grpctl_stw_model2]="flow model2 9_1B_DEPL_MAX_RATE_MIN_THP_STW 9_1b_grpctl_stw_model2"
|
||||
tests[9_1b_grpctl_msw_model2]="flow model2 9_1B_DEPL_MAX_RATE_MIN_THP_MSW 9_1b_grpctl_msw_model2"
|
||||
tests[9_2a_grpctl_stw_model2]="flow model2 9_2A_DEPL_GCONPROD_1L_STW 9_2a_grpctl_stw_model2"
|
||||
tests[9_2a_grpctl_msw_model2]="flow model2 9_2A_DEPL_GCONPROD_1L_MSW 9_2a_grpctl_msw_model2"
|
||||
tests[9_2b_grpctl_stw_model2]="flow model2 9_2B_DEPL_GCONPROD_2L_STW 9_2b_grpctl_stw_model2"
|
||||
tests[9_2b_grpctl_msw_model2]="flow model2 9_2B_DEPL_GCONPROD_2L_MSW 9_2b_grpctl_msw_model2"
|
||||
tests[9_3a_grpctl_stw_model2]="flow model2 9_3A_GINJ_REIN-G_STW 9_3a_grpctl_stw_model2"
|
||||
tests[9_3a_grpctl_msw_model2]="flow model2 9_3A_GINJ_REIN-G_MSW 9_3a_grpctl_msw_model2"
|
||||
tests[9_3b_grpctl_stw_model2]="flow model2 9_3B_GINJ_GAS_EXPORT_STW 9_3b_grpctl_stw_model2"
|
||||
tests[9_3b_grpctl_msw_model2]="flow model2 9_3B_GINJ_GAS_EXPORT_MSW 9_3b_grpctl_msw_model2"
|
||||
tests[9_3c_grpctl_stw_model2]="flow model2 9_3C_GINJ_GAS_GCONSUMP_STW 9_3c_grpctl_stw_model2"
|
||||
tests[9_3c_grpctl_msw_model2]="flow model2 9_3C_GINJ_GAS_GCONSUMP_MSW 9_3c_grpctl_msw_model2"
|
||||
tests[9_3d_grpctl_stw_model2]="flow model2 9_3D_GINJ_GAS_MAX_EXPORT_STW 9_3d_grpctl_stw_model2"
|
||||
tests[9_3d_grpctl_msw_model2]="flow model2 9_3D_GINJ_GAS_MAX_EXPORT_MSW 9_3d_grpctl_msw_model2"
|
||||
tests[9_3e_grpctl_stw_model2]="flow model2 9_3E_GAS_MIN_EXPORT_STW 9_3e_grpctl_stw_model2"
|
||||
tests[9_3e_grpctl_msw_model2]="flow model2 9_3E_GAS_MIN_EXPORT_MSW 9_3e_grpctl_msw_model2"
|
||||
tests[9_4a_grpctl_stw_model2]="flow model2 9_4A_WINJ_MAXWRATES_MAXBHP_GCONPROD_1L_STW 9_4a_grpctl_stw_model2"
|
||||
tests[9_4a_grpctl_msw_model2]="flow model2 9_4A_WINJ_MAXWRATES_MAXBHP_GCONPROD_1L_MSW 9_4a_grpctl_msw_model2"
|
||||
tests[9_4b_grpctl_stw_model2]="flow model2 9_4B_WINJ_VREP-W_STW 9_4b_grpctl_stw_model2"
|
||||
tests[9_4b_grpctl_msw_model2]="flow model2 9_4B_WINJ_VREP-W_MSW 9_4b_grpctl_msw_model2"
|
||||
tests[9_4c_grpctl_stw_model2]="flow model2 9_4C_WINJ_GINJ_VREP-W_REIN-G_STW 9_4c_grpctl_stw_model2"
|
||||
tests[9_4c_grpctl_msw_model2]="flow model2 9_4C_WINJ_GINJ_VREP-W_REIN-G_MSW 9_4c_grpctl_msw_model2"
|
||||
tests[9_4d_grpctl_stw_model2]="flow model2 9_4D_WINJ_GINJ_GAS_EXPORT_STW 9_4d_grpctl_stw_model2"
|
||||
tests[9_4d_grpctl_msw_model2]="flow model2 9_4D_WINJ_GINJ_GAS_EXPORT_MSW 9_4d_grpctl_msw_model2"
|
||||
tests[model4_group]="flow model4 MOD4_GRP model4_group"
|
||||
tests[model4_udq_group]="flow model4 MOD4_UDQ_ACTIONX model4_udq_group"
|
||||
tests[spe1_metric_vfp1]="flow vfpprod_spe1 SPE1CASE1_METRIC_VFP1"
|
||||
tests[base_model_1]="flow model1 BASE_MODEL_1"
|
||||
tests[msw_model_1]="flow model1 MSW_MODEL_1"
|
||||
tests[faults_model_1]="flow model1 FAULTS_MODEL_1"
|
||||
tests[base_model2]="flow model2 0_BASE_MODEL2"
|
||||
tests[0a1_grpctl_stw_model2]="flow model2 0A1_GRCTRL_LRAT_ORAT_BASE_MODEL2_STW"
|
||||
tests[0a1_grpctl_msw_model2]="flow model2 0A1_GRCTRL_LRAT_ORAT_BASE_MODEL2_MSW"
|
||||
tests[0a2_grpctl_stw_model2]="flow model2 0A2_GRCTRL_LRAT_ORAT_GGR_BASE_MODEL2_STW"
|
||||
tests[0a2_grpctl_msw_model2]="flow model2 0A2_GRCTRL_LRAT_ORAT_GGR_BASE_MODEL2_MSW"
|
||||
tests[0a3_grpctl_stw_model2]="flow model2 0A3_GRCTRL_LRAT_LRAT_BASE_MODEL2_STW"
|
||||
tests[0a3_grpctl_msw_model2]="flow model2 0A3_GRCTRL_LRAT_LRAT_BASE_MODEL2_MSW"
|
||||
tests[0a4_grpctl_stw_model2]="flow model2 0A4_GRCTRL_LRAT_LRAT_GGR_BASE_MODEL2_STW"
|
||||
tests[0a4_grpctl_msw_model2]="flow model2 0A4_GRCTRL_LRAT_LRAT_GGR_BASE_MODEL2_MSW"
|
||||
tests[multregt_model2]="flow model2 1_MULTREGT_MODEL2"
|
||||
tests[multxyz_model2]="flow model2 2_MULTXYZ_MODEL2"
|
||||
tests[multflt_model2]="flow model2 3_MULTFLT_MODEL2"
|
||||
tests[multpvv_model2]="flow model2 4_MINPVV_MODEL2"
|
||||
tests[swatinit_model2]="flow model2 5_SWATINIT_MODEL2"
|
||||
tests[endscale_model2]="flow model2 6_ENDSCALE_MODEL2"
|
||||
tests[hysteresis_model2]="flow model2 7_HYSTERESIS_MODEL2"
|
||||
tests[multiply_tranxyz_model2]="flow model2 8_MULTIPLY_TRANXYZ_MODEL2"
|
||||
tests[editnnc_model2]="flow model2 9_EDITNNC_MODEL2"
|
||||
tests[9_1a_grpctl_stw_model2]="flow model2 9_1A_DEPL_MAX_RATE_MIN_BHP_STW"
|
||||
tests[9_1a_grpctl_msw_model2]="flow model2 9_1A_DEPL_MAX_RATE_MIN_BHP_MSW"
|
||||
tests[9_1b_grpctl_stw_model2]="flow model2 9_1B_DEPL_MAX_RATE_MIN_THP_STW"
|
||||
tests[9_1b_grpctl_msw_model2]="flow model2 9_1B_DEPL_MAX_RATE_MIN_THP_MSW"
|
||||
tests[9_2a_grpctl_stw_model2]="flow model2 9_2A_DEPL_GCONPROD_1L_STW"
|
||||
tests[9_2a_grpctl_msw_model2]="flow model2 9_2A_DEPL_GCONPROD_1L_MSW"
|
||||
tests[9_2b_grpctl_stw_model2]="flow model2 9_2B_DEPL_GCONPROD_2L_STW"
|
||||
tests[9_2b_grpctl_msw_model2]="flow model2 9_2B_DEPL_GCONPROD_2L_MSW"
|
||||
tests[9_3a_grpctl_stw_model2]="flow model2 9_3A_GINJ_REIN-G_STW"
|
||||
tests[9_3a_grpctl_msw_model2]="flow model2 9_3A_GINJ_REIN-G_MSW"
|
||||
tests[9_3b_grpctl_stw_model2]="flow model2 9_3B_GINJ_GAS_EXPORT_STW"
|
||||
tests[9_3b_grpctl_msw_model2]="flow model2 9_3B_GINJ_GAS_EXPORT_MSW"
|
||||
tests[9_3c_grpctl_stw_model2]="flow model2 9_3C_GINJ_GAS_GCONSUMP_STW"
|
||||
tests[9_3c_grpctl_msw_model2]="flow model2 9_3C_GINJ_GAS_GCONSUMP_MSW"
|
||||
tests[9_3d_grpctl_stw_model2]="flow model2 9_3D_GINJ_GAS_MAX_EXPORT_STW"
|
||||
tests[9_3d_grpctl_msw_model2]="flow model2 9_3D_GINJ_GAS_MAX_EXPORT_MSW"
|
||||
tests[9_3e_grpctl_stw_model2]="flow model2 9_3E_GAS_MIN_EXPORT_STW"
|
||||
tests[9_3e_grpctl_msw_model2]="flow model2 9_3E_GAS_MIN_EXPORT_MSW"
|
||||
tests[9_4a_grpctl_stw_model2]="flow model2 9_4A_WINJ_MAXWRATES_MAXBHP_GCONPROD_1L_STW"
|
||||
tests[9_4a_grpctl_msw_model2]="flow model2 9_4A_WINJ_MAXWRATES_MAXBHP_GCONPROD_1L_MSW"
|
||||
tests[9_4b_grpctl_stw_model2]="flow model2 9_4B_WINJ_VREP-W_STW"
|
||||
tests[9_4b_grpctl_msw_model2]="flow model2 9_4B_WINJ_VREP-W_MSW"
|
||||
tests[9_4c_grpctl_stw_model2]="flow model2 9_4C_WINJ_GINJ_VREP-W_REIN-G_STW"
|
||||
tests[9_4c_grpctl_msw_model2]="flow model2 9_4C_WINJ_GINJ_VREP-W_REIN-G_MSW"
|
||||
tests[9_4d_grpctl_stw_model2]="flow model2 9_4D_WINJ_GINJ_GAS_EXPORT_STW"
|
||||
tests[9_4d_grpctl_msw_model2]="flow model2 9_4D_WINJ_GINJ_GAS_EXPORT_MSW"
|
||||
tests[model4_group]="flow model4 MOD4_GRP"
|
||||
tests[model4_udq_group]="flow model4 MOD4_UDQ_ACTIONX"
|
||||
tests[polymer_injectivity]="flow polymer_injectivity 2D_POLYMER_INJECTIVITY"
|
||||
tests[nnc]="flow editnnc NNC_AND_EDITNNC nnc"
|
||||
tests[udq_wconprod]="flow udq_actionx UDQ_WCONPROD udq_wconprod"
|
||||
tests[udq_actionx]="flow udq_actionx UDQ_ACTIONX udq_actionx"
|
||||
tests[udq_M1]="flow udq_actionx UDQ_M1 udq_uadd"
|
||||
tests[udq_pyaction]="flow udq_actionx PYACTION_WCONPROD udq_pyaction"
|
||||
tests[nnc]="flow editnnc NNC_AND_EDITNNC"
|
||||
tests[udq_wconprod]="flow udq_actionx UDQ_WCONPROD"
|
||||
tests[udq_actionx]="flow udq_actionx UDQ_ACTIONX"
|
||||
tests[udq_uadd]="flow udq_actionx UDQ_M1"
|
||||
tests[udq_pyaction]="flow udq_actionx PYACTION_WCONPROD"
|
||||
tests[spe1_foam]="flow spe1_foam SPE1FOAM"
|
||||
tests[wsegsicd]="flow wsegsicd TEST_WSEGSICD"
|
||||
tests[bc_lab]="flow bc_lab BC_LAB"
|
||||
tests[pinch_multz_all]="flow pinch PINCH_MULTZ_ALL pinch_multz_all"
|
||||
tests[pinch_multz_all_barrier]="flow pinch PINCH_MULTZ_ALL_BARRIER pinch_multz_all_barrier"
|
||||
tests[model6_msw]="flow model6 1_MSW_MODEL6 model6_msw"
|
||||
tests[pinch_multz_all]="flow pinch PINCH_MULTZ_ALL"
|
||||
tests[pinch_multz_all_barrier]="flow pinch PINCH_MULTZ_ALL_BARRIER"
|
||||
tests[model6_msw]="flow model6 1_MSW_MODEL6"
|
||||
|
||||
changed_tests=""
|
||||
|
||||
@ -150,12 +149,10 @@ do
|
||||
binary=`echo ${tests[$test_name]} | awk -F ' ' '{print $1}'`
|
||||
dirname=`echo ${tests[$test_name]} | awk -F ' ' '{print $2}'`
|
||||
casename=`echo ${tests[$test_name]} | awk -F ' ' '{print $3}'`
|
||||
tname=`echo ${tests[$test_name]} | awk -F ' ' '{print $4}'`
|
||||
test -z "$tname" && tname=$dirname
|
||||
if grep -q "$failed" <<< "$binary+$casename"
|
||||
then
|
||||
copyToReferenceDir \
|
||||
$configuration/build-opm-simulators/tests/results/$binary+$tname/ \
|
||||
$configuration/build-opm-simulators/tests/results/$binary+$test_name/ \
|
||||
$OPM_TESTS_ROOT/$dirname/opm-simulation-reference/$binary \
|
||||
$casename \
|
||||
EGRID INIT RFT SMSPEC UNRST UNSMRY
|
||||
|
Loading…
Reference in New Issue
Block a user