Skip to content

Commit 7c53729

Browse files
Merge pull request #2665 from jClugstor/JET_tests
Add JET and Aqua Tests to Subpackages
2 parents cc958fb + acad715 commit 7c53729

File tree

132 files changed

+755
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+755
-43
lines changed

lib/ImplicitDiscreteSolve/Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ SymbolicIndexingInterface = "0.3.38"
2323
Test = "1.10.0"
2424
UnPack = "1.0.2"
2525
julia = "1.10"
26+
JET = "0.9.18, 0.10.4"
27+
Aqua = "0.8.11"
2628

2729
[extras]
2830
OrdinaryDiffEqSDIRK = "2d112036-d095-4a1e-ab9a-08536f3ecdbf"
2931
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
32+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
33+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3034

3135
[targets]
32-
test = ["OrdinaryDiffEqSDIRK", "Test"]
36+
test = ["OrdinaryDiffEqSDIRK", "Test", "JET", "Aqua"]

lib/ImplicitDiscreteSolve/test/qa.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using ImplicitDiscreteSolve
2+
using Aqua
3+
4+
5+
@testset "Aqua" begin
6+
Aqua.test_all(
7+
ImplicitDiscreteSolve;
8+
piracies = false
9+
)
10+
end

lib/ImplicitDiscreteSolve/test/runtests.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ using ImplicitDiscreteSolve
44
using OrdinaryDiffEqCore
55
using OrdinaryDiffEqSDIRK
66
using SciMLBase
7+
using JET
78

89
# Test implicit Euler using ImplicitDiscreteProblem
910
@testset "Implicit Euler" begin
@@ -119,3 +120,11 @@ end
119120
sol = solve(idprob, IDSolve())
120121
@test length(sol.u) == 1
121122
end
123+
124+
125+
@testset "JET Tests" begin
126+
test_package(
127+
ImplicitDiscreteSolve, target_defined_modules = true, mode = :typo)
128+
end
129+
130+
include("qa.jl")

lib/OrdinaryDiffEqAdamsBashforthMoulton/Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ SafeTestsets = "0.1.0"
3030
Static = "1.1.1"
3131
Test = "<0.0.1, 1"
3232
julia = "1.10"
33+
JET = "0.9.18, 0.10.4"
34+
Aqua = "0.8.11"
3335

3436
[extras]
3537
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
@@ -38,6 +40,8 @@ ODEProblemLibrary = "fdc4e326-1af4-4b90-96e7-779fcce2daa5"
3840
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
3941
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
4042
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
43+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
44+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
4145

4246
[targets]
43-
test = ["DiffEqDevTools", "ODEProblemLibrary", "Random", "SafeTestsets", "Test", "DiffEqBase"]
47+
test = ["DiffEqDevTools", "ODEProblemLibrary", "Random", "SafeTestsets", "Test", "DiffEqBase", "JET", "Aqua"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import OrdinaryDiffEqAdamsBashforthMoulton
2+
using JET
3+
4+
@testset "JET Tests" begin
5+
test_package(
6+
OrdinaryDiffEqAdamsBashforthMoulton, target_defined_modules = true, mode = :typo)
7+
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using OrdinaryDiffEqAdamsBashforthMoulton
2+
using Aqua
3+
4+
@testset "Aqua" begin
5+
Aqua.test_all(
6+
OrdinaryDiffEqAdamsBashforthMoulton
7+
)
8+
end

lib/OrdinaryDiffEqAdamsBashforthMoulton/test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ using SafeTestsets
33
@time @safetestset "ABM Convergence Tests" include("abm_convergence_tests.jl")
44
@time @safetestset "Adams Variable Coefficients Tests" include("adams_tests.jl")
55
@time @safetestset "Regression test for threading versions vs non threading versions" include("regression_test_threading.jl")
6+
@time @safetestset "JET Tests" include("jet.jl")
7+
@time @safetestset "Aqua" include("qa.jl")

lib/OrdinaryDiffEqBDF/Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ ADTypes = "1.11"
2727
ArrayInterface = "7.15.0"
2828
DiffEqBase = "6.152.2"
2929
DiffEqDevTools = "2.44.4"
30+
Enzyme = "0.13"
3031
FastBroadcast = "0.3.5"
3132
ForwardDiff = "0.10.36"
3233
LinearAlgebra = "<0.0.1, 1"
34+
LinearSolve = "2.32, 3"
3335
MacroTools = "0.5.13"
3436
MuladdMacro = "0.2.4"
3537
ODEProblemLibrary = "0.1.8"
@@ -47,6 +49,8 @@ StaticArrays = "1.9.7"
4749
Test = "<0.0.1, 1"
4850
TruncatedStacktraces = "1.4.0"
4951
julia = "1.10"
52+
JET = "0.9.18, 0.10.4"
53+
Aqua = "0.8.11"
5054

5155
[extras]
5256
DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d"
@@ -58,6 +62,8 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
5862
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
5963
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
6064
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
65+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
66+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
6167

6268
[targets]
63-
test = ["DiffEqDevTools", "ForwardDiff", "Random", "SafeTestsets", "Test", "ODEProblemLibrary", "StaticArrays", "Enzyme", "LinearSolve"]
69+
test = ["DiffEqDevTools", "ForwardDiff", "Random", "SafeTestsets", "Test", "ODEProblemLibrary", "StaticArrays", "Enzyme", "LinearSolve", "JET", "Aqua"]

lib/OrdinaryDiffEqBDF/test/jet.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import OrdinaryDiffEqBDF
2+
using JET
3+
4+
@testset "JET Tests" begin
5+
test_package(
6+
OrdinaryDiffEqBDF, target_defined_modules = true, mode = :typo)
7+
end

lib/OrdinaryDiffEqBDF/test/qa.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using OrdinaryDiffEqBDF
2+
using Aqua
3+
4+
@testset "Aqua" begin
5+
Aqua.test_all(
6+
OrdinaryDiffEqBDF;
7+
)
8+
end

0 commit comments

Comments
 (0)