Skip to content

Commit

Permalink
refactor test entry point script, add Enzyme integration test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Nov 30, 2024
1 parent f754796 commit 320750d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions test/integration_testing/enzyme/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

15 changes: 15 additions & 0 deletions test/models/models.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

using PDMats

# Models for Inference Tests
struct TestModel{M,L,S,SC}
model::M
μ_true::L
L_true::S
n_dims::Int
strong_convexity::SC
is_meanfield::Bool
end

include("models/normal.jl")
include("models/normallognormal.jl")
13 changes: 1 addition & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ using FillArrays
using LinearAlgebra
using LogDensityProblems
using Optimisers
using PDMats
using Pkg
using Random, StableRNGs
using Statistics
Expand All @@ -27,17 +26,7 @@ using AdvancedVI

const TEST_GROUP = get(ENV, "TEST_GROUP", "All")

# Models for Inference Tests
struct TestModel{M,L,S,SC}
model::M
μ_true::L
L_true::S
n_dims::Int
strong_convexity::SC
is_meanfield::Bool
end
include("models/normal.jl")
include("models/normallognormal.jl")
include("models/models.jl")

if TEST_GROUP == "All" || TEST_GROUP == "Interface"
# Interface tests that do not involve testing on Enzyme
Expand Down

0 comments on commit 320750d

Please sign in to comment.