Skip to content

Commit f8f29d2

Browse files
authored
test: shorten Mooncake test suite (#980)
1 parent cfcf1db commit f8f29d2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

  • DifferentiationInterface/test/Back/Mooncake

DifferentiationInterface/test/Back/Mooncake/test.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ using Test
77
using ExplicitImports
88
check_no_implicit_imports(DifferentiationInterface)
99

10+
nomatrix(scens) = filter(s -> !(s.x isa AbstractMatrix) && !(s.y isa AbstractMatrix), scens)
11+
1012
backends = [
1113
AutoMooncake(),
1214
AutoMooncakeForward(),
@@ -20,14 +22,21 @@ for backend in backends
2022
end
2123

2224
test_differentiation(
23-
backends,
25+
backends[3:4],
2426
default_scenarios(;
2527
include_constantified = true, include_cachified = true, use_tuples = true
2628
);
2729
excluded = SECOND_ORDER,
2830
logging = LOGGING,
2931
);
3032

33+
test_differentiation(
34+
backends[1:2],
35+
nomatrix(default_scenarios());
36+
excluded = SECOND_ORDER,
37+
logging = LOGGING,
38+
);
39+
3140
EXCLUDED = @static if VERSION v"1.11-" && VERSION v"1.12-"
3241
# testing only :hessian on 1.11 due to an opaque closure bug.
3342
# this is potentially the same issue as discussed in
@@ -54,7 +63,7 @@ end
5463

5564
test_differentiation(
5665
backends[3:4],
57-
static_scenarios();
66+
nomatrix(static_scenarios());
5867
logging = LOGGING,
5968
excluded = SECOND_ORDER
6069
)

0 commit comments

Comments
 (0)