Skip to content

Commit

Permalink
Split into different test groups
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <2283984853@qq.com>
  • Loading branch information
ErikQQY committed Aug 28, 2024
1 parent d67f975 commit b92e192
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
- "macos-latest"
- "windows-latest"
group:
- "CPU"
- "MIRK"
- "MISC"
- "SHOOTING"
- "FIRK"
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
os: "${{ matrix.os }}"
Expand Down
34 changes: 29 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
using ReTestItems

ReTestItems.runtests(joinpath(@__DIR__, "mirk/"))
ReTestItems.runtests(joinpath(@__DIR__, "misc/"))
ReTestItems.runtests(joinpath(@__DIR__, "shooting/"))
ReTestItems.runtests(joinpath(@__DIR__, "firk/expanded/"))
ReTestItems.runtests(joinpath(@__DIR__, "firk/nested/"))
const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = Sys.iswindows() && haskey(ENV, "APPVEYOR")

@time begin
if GROUP == "All" || GROUP == "MRIK"
@time "MIRK solver" begin
ReTestItems.runtests(joinpath(@__DIR__, "mirk/"))
end
end

if GROUP == "All" || GROUP == "MISC"
@time "Miscellaneous" begin
ReTestItems.runtests(joinpath(@__DIR__, "misc/"))
end
end

if GROUP == "All" || GROUP == "SHOOTING"
@time "Shooting solver" begin
ReTestItems.runtests(joinpath(@__DIR__, "shooting/"))
end
end

if GROUP == "All" || GROUP == "FIRK"
@time "FIRK solver" begin
ReTestItems.runtests(joinpath(@__DIR__, "firk/expanded/"))
ReTestItems.runtests(joinpath(@__DIR__, "firk/nested/"))
end
end
end

if !Sys.iswindows() && !Sys.isapple()
# Wrappers like ODEInterface don't support parallel testing
Expand Down

0 comments on commit b92e192

Please sign in to comment.