Skip to content

Commit 88012c2

Browse files
test if CI is getting the right groups
1 parent d456c1e commit 88012c2

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

test/runtests.jl

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,35 @@ const LONGER_TESTS = false
55
const GROUP = get(ENV, "GROUP", "All")
66

77
function dev_subpkg(subpkg)
8-
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
9-
Pkg.develop(PackageSpec(path=subpkg_path))
8+
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
9+
Pkg.develop(PackageSpec(path=subpkg_path))
1010
end
1111

1212
function activate_subpkg_env(subpkg)
13-
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
14-
Pkg.activate(subpkg_path)
15-
Pkg.develop(PackageSpec(path=subpkg_path))
16-
Pkg.instantiate()
13+
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
14+
Pkg.activate(subpkg_path)
15+
Pkg.develop(PackageSpec(path=subpkg_path))
16+
Pkg.instantiate()
1717
end
1818

19+
@show GROUP, GROUP == "LinearSolvePardiso"
20+
1921
if GROUP == "All" || GROUP == "Core"
20-
@time @safetestset "Basic Tests" begin include("basictests.jl") end
22+
@time @safetestset "Basic Tests" begin
23+
include("basictests.jl")
24+
end
2125
end
2226

2327
if GROUP == "LinearSolveCUDA"
2428
dev_subpkg("LinearSolveCUDA")
25-
@time @safetestset "CUDA" begin include("../lib/LinearSolveCUDA/test/runtests.jl") end
29+
@time @safetestset "CUDA" begin
30+
include("../lib/LinearSolveCUDA/test/runtests.jl")
31+
end
2632
end
2733

2834
if GROUP == "LinearSolvePardiso"
2935
dev_subpkg("LinearSolvePardiso")
30-
@time @safetestset "Pardiso" begin include("../lib/LinearSolvePardiso/test/runtests.jl") end
36+
@time @safetestset "Pardiso" begin
37+
include("../lib/LinearSolvePardiso/test/runtests.jl")
38+
end
3139
end

0 commit comments

Comments
 (0)