File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ using Test, ChainRulesCore, ChainRulesTestUtils
2
+
3
+ @nospecialize
4
+
5
+ # don't interpret this, since this breaks some inference tests
6
+ @time include (" test_helpers.jl" )
7
+ println ()
8
+
9
+ module Tests
10
+
11
+ using .. Main: Multiplier, NoRules
1
12
using Base. Broadcast: broadcastable
2
13
using ChainRules
3
14
using ChainRulesCore
@@ -13,17 +24,21 @@ using StaticArrays
13
24
using Statistics
14
25
using Test
15
26
27
+ @nospecialize
28
+
29
+ if isdefined (Base, :Experimental ) && isdefined (Base. Experimental, Symbol (" @compiler_options" ))
30
+ @eval Base. Experimental. @compiler_options compile= min optimize= 0 infer= no
31
+ end
32
+
16
33
Random. seed! (1 ) # Set seed that all testsets should reset to.
17
34
18
- function include_test (path)
35
+ function include_test (path:: String )
19
36
println (" Testing $path :" ) # print so TravisCI doesn't timeout due to no output
20
37
@time include (path) # show basic timing, (this will print a newline at end)
21
38
end
22
39
23
40
println (" Testing ChainRules.jl" )
24
41
@testset " ChainRules" begin
25
- include_test (" test_helpers.jl" )
26
- println ()
27
42
@testset " rulesets" begin
28
43
@testset " Core" begin
29
44
include_test (" rulesets/Core/core.jl" )
@@ -64,3 +79,5 @@ println("Testing ChainRules.jl")
64
79
println ()
65
80
end
66
81
end
82
+
83
+ end
You can’t perform that action at this time.
0 commit comments