Skip to content

Commit b54cea3

Browse files
new test setup
1 parent 4d05916 commit b54cea3

3 files changed

Lines changed: 30 additions & 5 deletions

File tree

test/coloring_tests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using FiniteDiff, LinearAlgebra, SparseArrays, Test, LinearAlgebra, BlockBandedMatrices, ArrayInterface, BandedMatrices
1+
using FiniteDiff, LinearAlgebra, SparseArrays, Test, LinearAlgebra,
2+
BlockBandedMatrices, ArrayInterface, BandedMatrices
23

34
fcalls = 0
45
function f(dx,x)

test/downstream/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"

test/runtests.jl

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
1-
using FiniteDiff
2-
using Test, LinearAlgebra
1+
using Pkg
2+
using SafeTestsets
3+
const LONGER_TESTS = false
4+
5+
const GROUP = get(ENV, "GROUP", "All")
6+
const is_APPVEYOR = Sys.iswindows() && haskey(ENV,"APPVEYOR")
7+
8+
function activate_downstream_env()
9+
Pkg.activate("downstream")
10+
Pkg.develop(PackageSpec(path=dirname(@__DIR__)))
11+
Pkg.instantiate()
12+
end
313

414
@time begin
5-
include("finitedifftests.jl")
6-
include("coloring_tests.jl")
15+
16+
if GROUP == "All" || GROUP == "Core"
17+
@time @safetestset "FiniteDiff Standard Tests" begin include("finitedifftests.jl") end
18+
@time @safetestset "Color Differentiation Tests" begin include("coloring_tests.jl") end
19+
@time @safetestset "Out of Place Tests" begin include("out_of_place_tests.jl") end
20+
end
21+
22+
if GROUP == "All" || GROUP == "Downstream"
23+
activate_downstream_env()
24+
@time @safetestset "ODEs" begin
25+
import OrdinaryDiffEq
26+
include(joinpath(dirname(pathof(OrdinaryDiffEq)), "..", "test/interface/sparsedifftests.jl"))
27+
end
28+
end
29+
730
end

0 commit comments

Comments
 (0)