Skip to content

Commit f982f98

Browse files
committed
improve test filename consistency
1 parent 8524adb commit f982f98

20 files changed

+29
-136
lines changed

src/tests/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ ecbuild_add_test( TARGET test_orcajedi_coding_norms
88
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../../tools/cpplint.py
99
ARGS --recursive ${CMAKE_CURRENT_SOURCE_DIR}/../ )
1010

11-
ecbuild_add_test( TARGET test_orcamodel_hofx_ice
11+
ecbuild_add_test( TARGET test_orcamodel_hofx_sic
1212
OMP 1
13-
ARGS testinput/hofx_nc_ice.yaml
13+
ARGS testinput/hofx_nc_sic.yaml
1414
COMMAND orcamodel_hofx.x )
1515

16-
ecbuild_add_test( TARGET test_orcamodel_hofx3D_ice
16+
ecbuild_add_test( TARGET test_orcamodel_hofx3D_sic
1717
OMP 1
18-
ARGS testinput/ostia_seaice_obs_hofx3d.yaml
18+
ARGS testinput/hofx3d_nc_sic.yaml
1919
COMMAND orcamodel_hofx3D.x )
2020

2121
ecbuild_add_test( TARGET test_orcamodel_hofx3D_sst

src/tests/Data/CMakeLists.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11

22
list( APPEND orcajedi_test_data
3-
ostia_seaice_obs.odb
3+
hofx_sic_ostia_obs.odb
44
hofx_sst_obs.nc
55
eorca025_t_nemo.nc
66
orca2_t_bkg_var.nc
77
orca2_t_coords.nc
88
orca2_t_nemo.nc
99
orca1_t_nemo.nc
10-
ostia_seaice_obs.nc
10+
hofx_sic_ostia_obs.nc
1111
simple_nemo.nc
1212
create_orca2_t_bkg.nco
1313
create_orca2_t_bkg_var.nco
1414
hofx_sst_obs.cdl
1515
orca2_t_coords.cdl
16-
ostia_seaice_obs.cdl
17-
ostia_seaice_obs.csv
16+
hofx_sic_ostia_obs.csv
1817
simple_nemo.cdl
1918
hofx_two_vars_obs.nc
2019
hofx_potm_obs.nc
@@ -26,7 +25,7 @@ amm1_atlas_grid_spec.yaml
2625
amm1r_nemo.nc
2726
amm1r_atlas_grid_spec.yaml
2827
hofx_potm_amm1r_obs.nc
29-
amm_ssh_obs.nc
28+
hofx_ssh_amm_obs.nc
3029
)
3130

3231
foreach(FILENAME ${orcajedi_test_data})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/tests/Data/ostia_seaice_obs.cdl

-107
This file was deleted.

src/tests/orca-jedi/test_increment.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ CASE("test increment") {
185185
increment1 *=2;
186186
atlas::FieldSet incfset = atlas::FieldSet();
187187
increment1.Increment::toFieldSet(incfset);
188-
writeFieldsToFile("../testoutput/orca2_t_inc_fs_output.nc", geometry, datetime, incfset);
188+
writeFieldsToFile("../testoutput/orca2_t_increment_fieldset_output.nc",
189+
geometry, datetime, incfset);
189190
}
190191
}
191192

src/tests/testinput/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# (C) British Crown Copyright 2024 Met Office
22

33
list( APPEND orcajedi_test_input
4-
ostia_seaice_obs_hofx3d.yaml
5-
hofx_odb_ice.yaml
6-
hofx_nc_ice.yaml
4+
hofx_odb_sic.yaml
5+
hofx_nc_sic.yaml
76
hofx_nc_sst.yaml
87
hofx_nc_ssh.yaml
98
hofx_nc_ssh_checkerboard.yaml
109
hofx_nc_ssh_eorca025.yaml
1110
hofx_nc_ssh_amm1.yaml
1211
hofx_nc_potm_amm1r.yaml
12+
hofx3d_nc_sic.yaml
1313
hofx3d_nc_sst.yaml
1414
hofx3d_nc_potm.yaml
1515
hofx3d_nc_prof_2vars.yaml
1616
hofx3d_nc_ssh_amm1.yaml
1717
hofx3d_nc_ssh_amm1r.yaml
18-
odb_ice_query.yaml
19-
odb_ice_mapping.yaml
18+
odb_sic_query.yaml
19+
odb_sic_mapping.yaml
2020
test_name_map.yaml
2121
)
2222

src/tests/testinput/ostia_seaice_obs_hofx3d.yaml src/tests/testinput/hofx3d_nc_sic.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ observations:
3232
obsdatain:
3333
engine:
3434
type: H5File
35-
obsfile: Data/ostia_seaice_obs.nc
35+
obsfile: Data/hofx_sic_ostia_obs.nc
3636
obsdataout:
3737
engine:
3838
type: H5File
39-
obsfile: testoutput/test_ostia_seaice_obs_hofx3d_jopa.nc
39+
obsfile: testoutput/test_hofx3d_nc_sic_jopa_out.nc
4040
simulated variables: [seaIceFraction]
4141
get values:
4242
atlas-interpolator:
@@ -62,4 +62,4 @@ observations:
6262
prob density bad obs: 1.0
6363
PGE threshold: 0.5
6464
test:
65-
reference filename: testoutput/test_ostia_seaice_obs_hofx3d.ref
65+
reference filename: testoutput/test_hofx3d_nc_sic.ref

src/tests/testinput/hofx3d_nc_ssh_amm1.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ observations:
3030
obsdatain:
3131
engine:
3232
type: H5File
33-
obsfile: Data/amm_ssh_obs.nc
33+
obsfile: Data/hofx_ssh_amm_obs.nc
3434
simulated variables: [seaSurfaceHeightAnomaly]
3535
get values:
3636
atlas-interpolator:

src/tests/testinput/hofx3d_nc_ssh_amm1r.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ observations:
3030
obsdatain:
3131
engine:
3232
type: H5File
33-
obsfile: Data/amm_ssh_obs.nc
33+
obsfile: Data/hofx_ssh_amm_obs.nc
3434
simulated variables: [seaSurfaceHeightAnomaly]
3535
obsdataout:
3636
engine:

src/tests/testinput/hofx_nc_ice.yaml src/tests/testinput/hofx_nc_sic.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ observations:
4646
obsdatain:
4747
engine:
4848
type: H5File
49-
obsfile: Data/ostia_seaice_obs.nc
49+
obsfile: Data/hofx_sic_ostia_obs.nc
5050
obsdataout:
5151
engine:
5252
type: H5File
53-
obsfile: testoutput/test_hofx_nc_ice_jopa.nc
53+
obsfile: testoutput/test_hofx_nc_sic_jopa.nc
5454
simulated variables: [seaIceFraction]
5555
get values:
5656
time interpolation: linear
@@ -152,4 +152,4 @@ observations:
152152
flag: BayBgCheckReject
153153
- name: reject
154154
test:
155-
reference filename: testoutput/test_hofx_nc_ice.ref
155+
reference filename: testoutput/test_hofx_nc_sic.ref

src/tests/testinput/hofx_nc_ssh_amm1.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ observations:
4343
obsdatain:
4444
engine:
4545
type: H5File
46-
obsfile: Data/amm_ssh_obs.nc
46+
obsfile: Data/hofx_ssh_amm_obs.nc
4747
obsdataout:
4848
engine:
4949
type: H5File

src/tests/testinput/hofx_odb_ice.yaml src/tests/testinput/hofx_odb_sic.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ observations:
5050
obsdatain:
5151
engine:
5252
type: ODB
53-
obsfile: orca-jedi/src/tests/Data/ostia_seaice_obs.odb
54-
mapping file: orca-jedi/src/tests/testinput/odb_ice_mapping.yaml
55-
query file: orca-jedi/src/tests/testinput/odb_ice_query.yaml
53+
obsfile: orca-jedi/src/tests/Data/hofx_sic_ostia_obs.odb
54+
mapping file: orca-jedi/src/tests/testinput/odb_sic_mapping.yaml
55+
query file: orca-jedi/src/tests/testinput/odb_sic_query.yaml
5656
obsdataout:
5757
engine:
5858
type: H5File
File renamed without changes.

src/tests/testoutput/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
list( APPEND orcajedi_test_output
3-
test_ostia_seaice_obs_hofx3d.ref
4-
test_hofx_nc_ice.ref
3+
test_hofx_nc_sic.ref
54
test_hofx_nc_sst.ref
65
test_hofx_nc_ssh.ref
76
test_hofx_nc_ssh_eorca025.ref
87
test_hofx_nc_ssh_amm1.ref
98
test_hofx_nc_potm_amm1r.ref
9+
test_hofx3d_nc_sic.ref
1010
test_hofx3d_nc_sst.ref
1111
test_hofx3d_nc_potm.ref
1212
test_hofx3d_nc_prof_2vars.ref

0 commit comments

Comments
 (0)