Skip to content

Commit e728e55

Browse files
committed
Add JET tests for now
1 parent 152208e commit e728e55

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

test/runtests.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
using NonlinearSolve, Hwloc, InteractiveUtils, Pkg
2-
using SafeTestsets
3-
using ReTestItems
1+
using ReTestItems, NonlinearSolve, Hwloc, InteractiveUtils, Pkg
42

53
@info sprint(InteractiveUtils.versioninfo)
64

75
const GROUP = lowercase(get(ENV, "GROUP", "All"))
86

97
function activate_trim_env!()
108
Pkg.activate(abspath(joinpath(dirname(@__FILE__), "trim")))
11-
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
129
Pkg.instantiate()
1310
return nothing
1411
end

test/trim/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
33
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
44
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
5+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
56
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
67
LinearSolve = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
78
NonlinearSolveFirstOrder = "5959db7a-ea39-4486-b5fe-2dd0bf03d60d"

test/trim/clean_optimization.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ using LinearAlgebra
55
using StaticArrays
66
using LinearSolve
77
const LS = LinearSolve
8+
using SciMLBase: successful_retcode
9+
using JET
810

911
function f(u, p)
1012
L, U = cholesky(p.Σ)
@@ -30,3 +32,6 @@ function minimize(x)
3032
sol = solve(prob, alg)
3133
return sol
3234
end
35+
36+
@test successful_retcode(minimize(1.0).retcode)
37+
@test_opt minimize(1.0) broken=true

test/trim/trimmable_optimization.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ using LinearAlgebra
55
using StaticArrays
66
using LinearSolve
77
const LS = LinearSolve
8+
using SciMLBase: successful_retcode
9+
using JET
810

911
function f(u, p)
1012
L, U = cholesky(p.Σ)
@@ -33,3 +35,6 @@ function minimize(x)
3335
solve!(cache)
3436
return cache
3537
end
38+
39+
@test successful_retcode(minimize(1.0).retcode)
40+
@test_opt minimize(1.0) broken=true

0 commit comments

Comments
 (0)