Skip to content

Commit c74058b

Browse files
Merge pull request #108 from JuliaDiff/newtests
new test setup
2 parents 4d05916 + 88aa508 commit c74058b

5 files changed

Lines changed: 35 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.jl.cov
22
*.jl.*.cov
33
*.jl.mem
4+
Manifest.toml

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ julia = "1.2"
1818
[extras]
1919
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
2020
BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0"
21+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
2122
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
23+
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
2224

2325
[targets]
24-
test = ["Test", "BlockBandedMatrices", "BandedMatrices"]
26+
test = ["Test", "BlockBandedMatrices", "BandedMatrices", "Pkg", "SafeTestsets"]

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
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/sparsediff_tests.jl"))
27+
end
28+
end
29+
730
end

0 commit comments

Comments
 (0)