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
3 changes: 0 additions & 3 deletions lib/BVProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ BVProblemLibrary = "ded0fc24-dfea-4565-b1d9-79c027d14d84"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
BVProblemLibrary = {path = "../.."}

[compat]
Aqua = "0.8"
BVProblemLibrary = "0.1"
Expand Down
1 change: 1 addition & 0 deletions lib/BVProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions lib/DAEProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DAEProblemLibrary = "dfb8ca35-80a1-48ba-a605-84916a45b4f8"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
DAEProblemLibrary = {path = "../.."}

[compat]
Aqua = "0.8"
DAEProblemLibrary = "0.1"
Expand Down
1 change: 1 addition & 0 deletions lib/DAEProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions lib/DDEProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DDEProblemLibrary = "f42792ee-6ffc-4e2a-ae83-8ee2f22de800"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
DDEProblemLibrary = {path = "../.."}

[compat]
Aqua = "0.8"
DDEProblemLibrary = "0.1"
Expand Down
1 change: 1 addition & 0 deletions lib/DDEProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions lib/JumpProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ JumpProblemLibrary = "faf0f6d7-8cee-47cb-b27c-1eb80cef534e"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
JumpProblemLibrary = {path = "../.."}

[compat]
Aqua = "0.8"
JumpProblemLibrary = "2"
Expand Down
1 change: 1 addition & 0 deletions lib/JumpProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions lib/NonlinearProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ NonlinearProblemLibrary = "b7050fa9-e91f-4b37-bcee-a89a063da141"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
NonlinearProblemLibrary = {path = "../.."}

[compat]
AllocCheck = "0.2"
Aqua = "0.8"
Expand Down
1 change: 1 addition & 0 deletions lib/NonlinearProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions lib/ODEProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ ODEProblemLibrary = "fdc4e326-1af4-4b90-96e7-779fcce2daa5"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
ODEProblemLibrary = {path = "../.."}

[compat]
Aqua = "0.8"
ODEProblemLibrary = "1"
Expand Down
1 change: 1 addition & 0 deletions lib/ODEProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions lib/SDEProblemLibrary/test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ SDEProblemLibrary = "c72e72a9-a271-4b2b-8966-303ed956772e"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
SDEProblemLibrary = {path = "../.."}

[compat]
Aqua = "0.8"
SDEProblemLibrary = "1"
Expand Down
1 change: 1 addition & 0 deletions lib/SDEProblemLibrary/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_GROUP = get(ENV, "DIFFEQPROBLEMLIBRARY_TEST_GROUP", "All")

function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(Pkg.PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

Expand Down
3 changes: 0 additions & 3 deletions test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
DiffEqProblemLibrary = {path = "../.."}

[compat]
DiffEqProblemLibrary = "5"
SafeTestsets = "0.0.1, 0.1"
Expand Down
20 changes: 1 addition & 19 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,9 @@ using SciMLTesting
const GROUP = current_group()
const LIB_DIR = joinpath(dirname(@__DIR__), "lib")

# The root umbrella package's own QA env activation. On Julia < 1.11 the env's
# `[sources]` table is ignored by Pkg, so `DiffEqProblemLibrary = {path = "../.."}`
# would silently resolve to the registered release instead of the working copy —
# meaning the QA checks (Aqua.test_all etc.) run against the registry version, not
# the branch under CI. Develop the env's local path sources first, mirroring the
# sublibrary branch below, so the checks test the working tree.
function activate_qa_env()
qa_dir = joinpath(@__DIR__, "qa")
Pkg.activate(qa_dir)
if VERSION < v"1.11.0-DEV.0"
toml = Pkg.TOML.parsefile(joinpath(qa_dir, "Project.toml"))
specs = Pkg.PackageSpec[]
for (_, source_spec) in get(toml, "sources", Dict())
if source_spec isa Dict && haskey(source_spec, "path")
dep_path = normpath(joinpath(qa_dir, source_spec["path"]))
isdir(dep_path) && push!(specs, Pkg.PackageSpec(path = dep_path))
end
end
isempty(specs) || Pkg.develop(specs)
end
return Pkg.instantiate()
return activate_group_env(qa_dir; parent = dirname(@__DIR__))
end

# The root umbrella package's own test: it re-exports each sublibrary, so the test
Expand Down
Loading