11using 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 ]
2020# TODO (9/2/2025) - failing with decoupler, mloubout is looking into the issue
2121if 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. ;]
4646
4747# TODO (9/2/2025)- failing with decoupler, mloubout is looking into the issue
4848if 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
7474end
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)
116116 @test all (data (f) .== 1.5f0 )
117117end
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 )
125125 @test Base.:+ (a,1.5f0 ) ≈ dtype (1.5f0 + 1.5f0 ). value
126126end
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 )
134134 @test Base.:- (a,1.5f0 ) ≈ dtype (3.0f0 - 1.5f0 ). value
135135end
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 )
143143 @test Base.:* (a,1.5f0 ) ≈ dtype (1.5f0 * 1.5f0 ). value
144144end
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 )
152152 @test Base.:/ (a,1.5f0 ) ≈ dtype (3.0f0 / 1.5f0 ). value
153153end
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 )
164164 @test Base. isapprox (a,1.5f0 )
165165end
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
183183 @test promote_type (typeof (f32u08), typeof (f64u16)) == typeof (f64u16)
184184end
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 ))
195195 @test isapprox (Devito. decompress .(data (f)), Devito. decompress .(data (g)))
196196end
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
207207if 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
281281end
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)
299299end
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