Skip to content

Commit 8edc8b7

Browse files
all tests on in devitoprotests.jl
1 parent 34ae90c commit 8edc8b7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/devitoprotests.jl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Devito, PyCall, Test
22

3-
@test_skip @testset "ABox Expanding Source" begin
3+
@testset "ABox Expanding Source" begin
44
g = Grid(shape=(8,8), extent=(7.0,7.0))
55
nt = 3
66
coords = [0.5 2.5; 2.5 2.5; 0.5 4.5; 2.5 4.5]
@@ -20,7 +20,7 @@ end
2020
# TODO (9/2/2025) - failing with decoupler, mloubout is looking into the issue
2121
if get(ENV, "DEVITO_DECOUPLER", "0") != "1"
2222
# TODO - 2024-08-15 JKW these two ABox tests are broken -- some kind of API change?
23-
@test_skip @testset "ABox Time Function" begin
23+
@testset "ABox Time Function" begin
2424
g = Grid(shape=(5,5), extent=(4.0,4.0))
2525
nt = 3
2626
coords = [2. 2. ;]
@@ -46,7 +46,7 @@ end
4646

4747
# TODO (9/2/2025)- failing with decoupler, mloubout is looking into the issue
4848
if get(ENV, "DEVITO_DECOUPLER", "0") != "1"
49-
@test_skip @testset "ABox Intersection Time Function" begin
49+
@testset "ABox Intersection Time Function" begin
5050
mid = SubDomain("mid",[("middle",2,2),("middle",0,0)])
5151
g = Grid(shape=(5,5), extent=(4.0,4.0), subdomains=mid)
5252
nt = 3
@@ -73,7 +73,7 @@ if get(ENV, "DEVITO_DECOUPLER", "0") != "1"
7373
end
7474
end
7575

76-
@test_skip @testset "FloatX dtypes with $(mytype), $(DT), $(CT)" for mytype [Float32, Float64], (nb, DT, CT) in zip([8, 16], [FloatX8, FloatX16], [UInt8, UInt16])
76+
@testset "FloatX dtypes with $(mytype), $(DT), $(CT)" for mytype [Float32, Float64], (nb, DT, CT) in zip([8, 16], [FloatX8, FloatX16], [UInt8, UInt16])
7777
g = Grid(shape=(5,5))
7878
dtype = DT(1.5f0, 4.5f0)
7979
atol = Devito.scale(dtype)
@@ -116,7 +116,7 @@ end
116116
@test all(data(f) .== 1.5f0)
117117
end
118118

119-
@test_skip @testset "FloatX addition" for DT (FloatX8, FloatX16)
119+
@testset "FloatX addition" for DT (FloatX8, FloatX16)
120120
dtype = DT(1.5f0, 4.5f0)
121121
a = dtype(1.5f0)
122122
b = dtype(1.5f0)
@@ -125,7 +125,7 @@ end
125125
@test Base.:+(a,1.5f0) dtype(1.5f0 + 1.5f0).value
126126
end
127127

128-
@test_skip @testset "FloatX subtraction" for DT (FloatX8, FloatX16)
128+
@testset "FloatX subtraction" for DT (FloatX8, FloatX16)
129129
dtype = DT(1.5f0, 4.5f0)
130130
a = dtype(3.0f0)
131131
b = dtype(1.5f0)
@@ -134,7 +134,7 @@ end
134134
@test Base.:-(a,1.5f0) dtype(3.0f0 - 1.5f0).value
135135
end
136136

137-
@test_skip @testset "FloatX multiplication" for DT (FloatX8, FloatX16)
137+
@testset "FloatX multiplication" for DT (FloatX8, FloatX16)
138138
dtype = DT(1.5f0, 4.5f0)
139139
a = dtype(1.5f0)
140140
b = dtype(1.5f0)
@@ -143,7 +143,7 @@ end
143143
@test Base.:*(a,1.5f0) dtype(1.5f0 * 1.5f0).value
144144
end
145145

146-
@test_skip @testset "FloatX division" for DT (FloatX8, FloatX16)
146+
@testset "FloatX division" for DT (FloatX8, FloatX16)
147147
dtype = DT(1.5f0, 4.5f0)
148148
a = dtype(3.0f0)
149149
b = dtype(1.5f0)
@@ -152,7 +152,7 @@ end
152152
@test Base.:/(a,1.5f0) dtype(3.0f0 / 1.5f0).value
153153
end
154154

155-
@test_skip @testset "FloatX comparison" for DT (FloatX8, FloatX16)
155+
@testset "FloatX comparison" for DT (FloatX8, FloatX16)
156156
dtype = DT(1.5f0, 4.5f0)
157157
a = dtype(1.5f0)
158158
b = dtype(1.5f0)
@@ -164,7 +164,7 @@ end
164164
@test Base.isapprox(a,1.5f0)
165165
end
166166

167-
@test_skip @testset "FloatX convert" for DT (FloatX8, FloatX16)
167+
@testset "FloatX convert" for DT (FloatX8, FloatX16)
168168
dtype = DT(1.5f0, 4.5f0)
169169
a = dtype(1.5f0)
170170
@test Base.convert(typeof(a),1.5f0) == a
@@ -183,7 +183,7 @@ end
183183
@test promote_type(typeof(f32u08), typeof(f64u16)) == typeof(f64u16)
184184
end
185185

186-
@test_skip @testset "FloatX arrays with $(mytype), $(DT), $(CT), autopad=$(autopad)" for mytype [Float32, Float64], (DT, CT) in zip([FloatX8, FloatX16], [UInt8, UInt16]), autopad (true,false)
186+
@testset "FloatX arrays with $(mytype), $(DT), $(CT), autopad=$(autopad)" for mytype [Float32, Float64], (DT, CT) in zip([FloatX8, FloatX16], [UInt8, UInt16]), autopad (true,false)
187187
configuration!("autopadding", autopad)
188188
g = Grid(shape=(5,5))
189189
dtype = DT(mytype(-1.1), mytype(+1.1))
@@ -195,7 +195,7 @@ end
195195
@test isapprox(Devito.decompress.(data(f)), Devito.decompress.(data(g)))
196196
end
197197

198-
@test_skip @testset "FloatX eps with $(mytype), $(DT), $(CT)" for mytype [Float32, Float64], (DT, CT) in zip([FloatX8, FloatX16], [UInt8, UInt16])
198+
@testset "FloatX eps with $(mytype), $(DT), $(CT)" for mytype [Float32, Float64], (DT, CT) in zip([FloatX8, FloatX16], [UInt8, UInt16])
199199
g = Grid(shape=(5,5))
200200
dtype = DT(mytype(1.5), mytype(4.5))
201201
@test eps(dtype) eps(mytype)
@@ -205,7 +205,7 @@ devito_arch = get(ENV, "DEVITO_ARCH", "gcc")
205205

206206
# TODO (9/2/2025) - failing with decoupler, mloubout is looking into the issue
207207
if get(ENV, "DEVITO_DECOUPLER", "0") != "1"
208-
@test_skip @testset "CCall with printf" begin
208+
@testset "CCall with printf" begin
209209
# CCall test written to use gcc
210210
carch = devito_arch in ["gcc", "clang"] ? devito_arch : "gcc"
211211
@pywith switchconfig(;compiler=get(ENV, "CC", carch)) begin
@@ -237,7 +237,7 @@ compression = []
237237
(lowercase(devito_arch) == "nvc") && (push!(compression, "bitcomp"))
238238
(lowercase(devito_arch) in ["gcc", "clang"]) && (push!(compression, "cvxcompress"))
239239

240-
@test_skip @testset "Serialization with compression=$(compression)" for compression in compression
240+
@testset "Serialization with compression=$(compression)" for compression in compression
241241
if compression == "bitcomp"
242242
configuration!("compiler", "nvc")
243243
else
@@ -280,7 +280,7 @@ compression = []
280280
end
281281
end
282282

283-
@test_skip @testset "Serialization serial2str" begin
283+
@testset "Serialization serial2str" begin
284284
nt = 11
285285
space_order = 8
286286
grid = Grid(shape=(21,21,21), dtype=Float32)
@@ -299,7 +299,7 @@ end
299299
end
300300

301301
# JKW: removing for now, not sure what is even being tested here
302-
# @test_skip @testset "Serialization with CCall T=$T" for T in (Float32,Float64)
302+
# @testset "Serialization with CCall T=$T" for T in (Float32,Float64)
303303
# space_order = 2
304304
# time_M = 3
305305
# filename = "testserialization.bin"

0 commit comments

Comments
 (0)