Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.jl.cov
*.jl.*.cov
*.jl.mem
Manifest.toml
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ julia = "1.2"
[extras]
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"

[targets]
test = ["Test", "BlockBandedMatrices", "BandedMatrices"]
test = ["Test", "BlockBandedMatrices", "BandedMatrices", "Pkg", "SafeTestsets"]
3 changes: 2 additions & 1 deletion test/coloring_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FiniteDiff, LinearAlgebra, SparseArrays, Test, LinearAlgebra, BlockBandedMatrices, ArrayInterface, BandedMatrices
using FiniteDiff, LinearAlgebra, SparseArrays, Test, LinearAlgebra,
BlockBandedMatrices, ArrayInterface, BandedMatrices

fcalls = 0
function f(dx,x)
Expand Down
2 changes: 2 additions & 0 deletions test/downstream/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
31 changes: 27 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
using FiniteDiff
using Test, LinearAlgebra
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
include("finitedifftests.jl")
include("coloring_tests.jl")

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
include(joinpath(dirname(pathof(OrdinaryDiffEq)), "..", "test/interface/sparsediff_tests.jl"))
end
end

end