Skip to content

Commit

Permalink
Split up the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 8, 2023
1 parent 6bd60fe commit a968a99
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
fail-fast: false
matrix:
group:
- All
- Core
- NLLS
- 23TestProblems
- Wrappers
- Miscellaneous
version:
- '1'
- '~1.10.0-0'
Expand Down
6 changes: 3 additions & 3 deletions test/23_test_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ end
broken_tests = Dict(alg => Int[] for alg in alg_ops)
broken_tests[alg_ops[1]] = [1, 5, 6, 11]
broken_tests[alg_ops[2]] = [1, 5, 6, 8, 11, 18]
broken_tests[alg_ops[3]] = [1, 4, 5, 6, 9, 11]
broken_tests[alg_ops[3]] = [1, 5, 6, 9, 11]
broken_tests[alg_ops[4]] = [1, 5, 6, 8, 11]
broken_tests[alg_ops[5]] = [1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 15, 21]
broken_tests[alg_ops[5]] = [1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 21]
broken_tests[alg_ops[6]] = [2, 3, 4, 5, 6, 8, 9, 11, 12, 21, 22]

test_on_library(problems, dicts, alg_ops, broken_tests)
Expand All @@ -112,7 +112,7 @@ end

broken_tests = Dict(alg => Int[] for alg in alg_ops)
broken_tests[alg_ops[1]] = [1, 2, 4, 5, 6, 11, 22]
broken_tests[alg_ops[2]] = [1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 17, 21, 22, 23]
broken_tests[alg_ops[2]] = [1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 17, 21, 22]
broken_tests[alg_ops[3]] = [2, 4, 5, 6, 7, 18, 22]

test_on_library(problems, dicts, alg_ops, broken_tests)
Expand Down
19 changes: 14 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ end

@time begin
if GROUP == "All" || GROUP == "Core"
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Basic Tests + Some AD" include("basictests.jl")
@time @safetestset "Sparsity Tests" include("sparse.jl")
@time @safetestset "Polyalgs" include("polyalgs.jl")
@time @safetestset "Matrix Resizing" include("matrix_resizing.jl")
@time @safetestset "Infeasible Problems" include("infeasible.jl")
end

if GROUP == "All" || GROUP == "NLLS"
@time @safetestset "Nonlinear Least Squares" include("nonlinear_least_squares.jl")
end

if GROUP == "All" || GROUP == "Wrappers"
@time @safetestset "MINPACK" include("minpack.jl")
@time @safetestset "NLsolve" include("nlsolve.jl")
end
Expand All @@ -28,6 +29,14 @@ end
@time @safetestset "23 Test Problems" include("23_test_problems.jl")
end

if GROUP == "All" || GROUP == "Miscellaneous"
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Sparsity Tests" include("sparse.jl")
@time @safetestset "Polyalgs" include("polyalgs.jl")
@time @safetestset "Matrix Resizing" include("matrix_resizing.jl")
@time @safetestset "Infeasible Problems" include("infeasible.jl")
end

if GROUP == "GPU"
activate_downstream_env()
@time @safetestset "GPU Tests" include("gpu.jl")
Expand Down

0 comments on commit a968a99

Please sign in to comment.