From 0497dc8ad489c8b1278d36e63b9db4dc9e0abd82 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Tue, 17 Mar 2026 11:38:37 +0100 Subject: [PATCH] test: shorten Mooncake test suite --- DifferentiationInterface/test/Back/Mooncake/test.jl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/DifferentiationInterface/test/Back/Mooncake/test.jl b/DifferentiationInterface/test/Back/Mooncake/test.jl index 8c67aa1bb..9bf8479f5 100644 --- a/DifferentiationInterface/test/Back/Mooncake/test.jl +++ b/DifferentiationInterface/test/Back/Mooncake/test.jl @@ -7,6 +7,8 @@ using Test using ExplicitImports check_no_implicit_imports(DifferentiationInterface) +nomatrix(scens) = filter(s -> !(s.x isa AbstractMatrix) && !(s.y isa AbstractMatrix), scens) + backends = [ AutoMooncake(), AutoMooncakeForward(), @@ -20,7 +22,7 @@ for backend in backends end test_differentiation( - backends, + backends[3:4], default_scenarios(; include_constantified = true, include_cachified = true, use_tuples = true ); @@ -28,6 +30,13 @@ test_differentiation( logging = LOGGING, ); +test_differentiation( + backends[1:2], + nomatrix(default_scenarios()); + excluded = SECOND_ORDER, + logging = LOGGING, +); + EXCLUDED = @static if VERSION ≥ v"1.11-" && VERSION ≤ v"1.12-" # testing only :hessian on 1.11 due to an opaque closure bug. # this is potentially the same issue as discussed in @@ -54,7 +63,7 @@ end test_differentiation( backends[3:4], - static_scenarios(); + nomatrix(static_scenarios()); logging = LOGGING, excluded = SECOND_ORDER )