-
Notifications
You must be signed in to change notification settings - Fork 38
/
runtests.jl
31 lines (25 loc) · 989 Bytes
/
runtests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Pkg
using SafeTestsets
const LONGER_TESTS = false
const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = Sys.iswindows() && haskey(ENV,"APPVEYOR")
function activate_downstream_env()
Pkg.activate("downstream")
Pkg.develop(PackageSpec(path=dirname(@__DIR__)))
Pkg.instantiate()
end
@time begin
if GROUP == "All" || GROUP == "Core"
@time @safetestset "FiniteDiff Standard Tests" begin include("finitedifftests.jl") end
@time @safetestset "Color Differentiation Tests" begin include("coloring_tests.jl") end
@time @safetestset "Out of Place Tests" begin include("out_of_place_tests.jl") end
end
if GROUP == "All" || GROUP == "Downstream"
activate_downstream_env()
@time @safetestset "ODEs" begin
import OrdinaryDiffEq
@time @safetestset "OrdinaryDiffEq Tridiagonal" begin include("downstream/ordinarydiffeq_tridiagonal_solve.jl") end
include(joinpath(dirname(pathof(OrdinaryDiffEq)), "..", "test/interface/sparsediff_tests.jl"))
end
end
end