-
Notifications
You must be signed in to change notification settings - Fork 191
/
runtests.jl
182 lines (156 loc) · 5.77 KB
/
runtests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
include("dependencies_for_runtests.jl")
CUDA.allowscalar() do
@testset "Oceananigans" begin
if test_file != :none
@testset "Single file test" begin
include(String(test_file))
end
end
# Core Oceananigans
if group == :unit || group == :all
@testset "Unit tests" begin
include("test_grids.jl")
include("test_operators.jl")
include("test_boundary_conditions.jl")
include("test_field.jl")
include("test_regrid.jl")
include("test_field_reductions.jl")
include("test_halo_regions.jl")
include("test_coriolis.jl")
include("test_buoyancy.jl")
include("test_stokes_drift.jl")
include("test_utils.jl")
include("test_schedules.jl")
end
end
if group == :abstract_operations || group == :all
@testset "AbstractOperations and broadcasting tests" begin
include("test_abstract_operations.jl")
include("test_conditional_reductions.jl")
include("test_computed_field.jl")
include("test_broadcasting.jl")
end
end
if group == :poisson_solvers_1 || group == :all
@testset "Poisson Solvers 1" begin
include("test_poisson_solvers.jl")
end
end
if group == :poisson_solvers_2 || group == :all
@testset "Poisson Solvers 2" begin
include("test_poisson_solvers_stretched_grids.jl")
end
end
if group == :matrix_poisson_solvers || group == :all
@testset "Matrix Poisson Solvers" begin
include("test_matrix_poisson_solver.jl")
end
end
if group == :general_solvers || group == :all
@testset "General Solvers" begin
include("test_batched_tridiagonal_solver.jl")
include("test_preconditioned_conjugate_gradient_solver.jl")
end
end
# Simulations
if group == :simulation || group == :all
@testset "Simulation tests" begin
include("test_simulations.jl")
include("test_diagnostics.jl")
include("test_output_writers.jl")
include("test_netcdf_output_writer.jl")
include("test_output_readers.jl")
end
end
# Lagrangian particle tracking
if group == :lagrangian || group == :all
@testset "Lagrangian particle tracking tests" begin
include("test_lagrangian_particle_tracking.jl")
end
end
# Models
if group == :time_stepping_1 || group == :all
@testset "Model and time stepping tests (part 1)" begin
include("test_nonhydrostatic_models.jl")
include("test_time_stepping.jl")
end
end
if group == :time_stepping_2 || group == :all
@testset "Model and time stepping tests (part 2)" begin
include("test_boundary_conditions_integration.jl")
include("test_forcings.jl")
include("test_immersed_advection.jl")
end
end
if group == :time_stepping_3 || group == :all
@testset "Model and time stepping tests (part 3)" begin
include("test_dynamics.jl")
include("test_biogeochemistry.jl")
include("test_sewater_density.jl")
end
end
if group == :turbulence_closures || group == :all
@testset "Turbulence closures tests" begin
include("test_turbulence_closures.jl")
end
end
if group == :shallow_water || group == :all
include("test_shallow_water_models.jl")
end
if group == :hydrostatic_free_surface || group == :all
@testset "HydrostaticFreeSurfaceModel tests" begin
include("test_hydrostatic_free_surface_models.jl")
include("test_ensemble_hydrostatic_free_surface_models.jl")
include("test_hydrostatic_free_surface_immersed_boundaries.jl")
include("test_vertical_vorticity_field.jl")
include("test_implicit_free_surface_solver.jl")
include("test_split_explicit_free_surface_solver.jl")
include("test_split_explicit_vertical_integrals.jl")
include("test_hydrostatic_free_surface_immersed_boundaries_implicit_solve.jl")
end
end
# Model enhancements: cubed sphere, distributed, etc
if group == :multi_region || group == :all
@testset "Multi Region tests" begin
include("test_multi_region_unit.jl")
include("test_multi_region_advection_diffusion.jl")
include("test_multi_region_implicit_solver.jl")
include("test_multi_region_cubed_sphere.jl")
end
end
if group == :distributed || group == :all
MPI.Initialized() || MPI.Init()
include("test_distributed_models.jl")
end
if group == :distributed_solvers || group == :all
MPI.Initialized() || MPI.Init()
include("test_distributed_poisson_solvers.jl")
end
if group == :distributed_hydrostatic_model || group == :all
MPI.Initialized() || MPI.Init()
archs = test_architectures()
include("test_hydrostatic_regression.jl")
include("test_distributed_hydrostatic_model.jl")
end
if group == :nonhydrostatic_regression || group == :all
include("test_nonhydrostatic_regression.jl")
end
if group == :hydrostatic_regression || group == :all
include("test_hydrostatic_regression.jl")
end
if group == :scripts || group == :all
@testset "Scripts" begin
include("test_validation.jl")
end
end
# Tests for Enzyme extension
if group == :enzyme || group == :all
@testset "Enzyme extension tests" begin
include("test_enzyme.jl")
end
end
if group == :convergence
include("test_convergence.jl")
end
end
end #CUDA.allowscalar()