-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lilith Hafner
authored and
Lilith Hafner
committed
Oct 3, 2023
1 parent
eddd2c8
commit 7090062
Showing
1 changed file
with
108 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,115 @@ | ||
using Pkg | ||
using SafeTestsets | ||
using Test | ||
using SciMLBase | ||
using PyCall | ||
|
||
# https://github.com/JuliaArrays/FillArrays.jl/pull/163 | ||
@test_broken isempty(detect_ambiguities(SciMLBase)) | ||
py""" | ||
import julia | ||
""" | ||
|
||
const GROUP = get(ENV, "GROUP", "All") | ||
const is_APPVEYOR = (Sys.iswindows() && haskey(ENV, "APPVEYOR")) | ||
# using Pkg | ||
# using SafeTestsets | ||
# using Test | ||
# using SciMLBase | ||
|
||
function activate_downstream_env() | ||
Pkg.activate("downstream") | ||
Pkg.develop(PackageSpec(path = dirname(@__DIR__))) | ||
Pkg.instantiate() | ||
end | ||
# # https://github.com/JuliaArrays/FillArrays.jl/pull/163 | ||
# @test_broken isempty(detect_ambiguities(SciMLBase)) | ||
|
||
function activate_python_env() | ||
Pkg.activate("python") | ||
Pkg.develop(PackageSpec(path = dirname(@__DIR__))) | ||
Pkg.instantiate() | ||
end | ||
# const GROUP = get(ENV, "GROUP", "All") | ||
# const is_APPVEYOR = (Sys.iswindows() && haskey(ENV, "APPVEYOR")) | ||
|
||
@time begin | ||
if GROUP == "Core" || GROUP == "All" | ||
@time @safetestset "Aqua" begin | ||
include("aqua.jl") | ||
end | ||
@time @safetestset "Display" begin | ||
include("display.jl") | ||
end | ||
@time @safetestset "Existence functions" begin | ||
include("existence_functions.jl") | ||
end | ||
@time @safetestset "Function Building Error Messages" begin | ||
include("function_building_error_messages.jl") | ||
end | ||
@time @safetestset "Solver Missing Error Messages" begin | ||
include("solver_missing_error_messages.jl") | ||
end | ||
@time @safetestset "Integrator interface" begin | ||
include("integrator_tests.jl") | ||
end | ||
@time @safetestset "Table Traits" begin | ||
include("traits.jl") | ||
end | ||
@time @safetestset "Ensemble functionality" begin | ||
include("ensemble_tests.jl") | ||
end | ||
@time @safetestset "DiffEqOperator tests" begin | ||
include("diffeqoperator.jl") | ||
end | ||
@time @safetestset "Solution interface" begin | ||
include("solution_interface.jl") | ||
end | ||
@time @safetestset "DE function conversion" begin | ||
include("convert_tests.jl") | ||
end | ||
@time @safetestset "Performance warnings" begin | ||
include("performance_warnings.jl") | ||
end | ||
@time @safetestset "Problem building tests" begin | ||
include("problem_building_test.jl") | ||
end | ||
end | ||
# function activate_downstream_env() | ||
# Pkg.activate("downstream") | ||
# Pkg.develop(PackageSpec(path = dirname(@__DIR__))) | ||
# Pkg.instantiate() | ||
# end | ||
|
||
if !is_APPVEYOR && GROUP == "Downstream" | ||
activate_downstream_env() | ||
@time @safetestset "Ensembles of Zero Length Solutions" begin | ||
include("downstream/ensemble_zero_length.jl") | ||
end | ||
@time @safetestset "Timing first batch when solving Ensembles" begin | ||
include("downstream/ensemble_first_batch.jl") | ||
end | ||
@time @safetestset "solving Ensembles with multiple problems" begin | ||
include("downstream/ensemble_multi_prob.jl") | ||
end | ||
@time @safetestset "Symbol and integer based indexing of interpolated solutions" begin | ||
include("downstream/symbol_indexing.jl") | ||
end | ||
if VERSION >= v"1.8" | ||
@time @safetestset "Symbol and integer based indexing of integrators" begin | ||
include("downstream/integrator_indexing.jl") | ||
end | ||
@time @safetestset "Problem Indexing" begin | ||
include("downstream/problem_interface.jl") | ||
end | ||
@time @safetestset "Solution Indexing" begin | ||
include("downstream/solution_interface.jl") | ||
end | ||
end | ||
@time @safetestset "Unitful interpolations" begin | ||
include("downstream/unitful_interpolations.jl") | ||
end | ||
@time @safetestset "Integer idxs" begin | ||
include("downstream/integer_idxs.jl") | ||
end | ||
@time @safetestset "Autodiff Remake" begin | ||
include("downstream/remake_autodiff.jl") | ||
end | ||
end | ||
# function activate_python_env() | ||
# Pkg.activate("python") | ||
# Pkg.develop(PackageSpec(path = dirname(@__DIR__))) | ||
# Pkg.instantiate() | ||
# end | ||
|
||
if !is_APPVEYOR && GROUP == "Python" | ||
activate_python_env() | ||
@time @safetestset "PyCall" begin | ||
include("python/pycall.jl") | ||
end | ||
end | ||
end | ||
# @time begin | ||
# if GROUP == "Core" || GROUP == "All" | ||
# @time @safetestset "Aqua" begin | ||
# include("aqua.jl") | ||
# end | ||
# @time @safetestset "Display" begin | ||
# include("display.jl") | ||
# end | ||
# @time @safetestset "Existence functions" begin | ||
# include("existence_functions.jl") | ||
# end | ||
# @time @safetestset "Function Building Error Messages" begin | ||
# include("function_building_error_messages.jl") | ||
# end | ||
# @time @safetestset "Solver Missing Error Messages" begin | ||
# include("solver_missing_error_messages.jl") | ||
# end | ||
# @time @safetestset "Integrator interface" begin | ||
# include("integrator_tests.jl") | ||
# end | ||
# @time @safetestset "Table Traits" begin | ||
# include("traits.jl") | ||
# end | ||
# @time @safetestset "Ensemble functionality" begin | ||
# include("ensemble_tests.jl") | ||
# end | ||
# @time @safetestset "DiffEqOperator tests" begin | ||
# include("diffeqoperator.jl") | ||
# end | ||
# @time @safetestset "Solution interface" begin | ||
# include("solution_interface.jl") | ||
# end | ||
# @time @safetestset "DE function conversion" begin | ||
# include("convert_tests.jl") | ||
# end | ||
# @time @safetestset "Performance warnings" begin | ||
# include("performance_warnings.jl") | ||
# end | ||
# @time @safetestset "Problem building tests" begin | ||
# include("problem_building_test.jl") | ||
# end | ||
# end | ||
|
||
# if !is_APPVEYOR && GROUP == "Downstream" | ||
# activate_downstream_env() | ||
# @time @safetestset "Ensembles of Zero Length Solutions" begin | ||
# include("downstream/ensemble_zero_length.jl") | ||
# end | ||
# @time @safetestset "Timing first batch when solving Ensembles" begin | ||
# include("downstream/ensemble_first_batch.jl") | ||
# end | ||
# @time @safetestset "solving Ensembles with multiple problems" begin | ||
# include("downstream/ensemble_multi_prob.jl") | ||
# end | ||
# @time @safetestset "Symbol and integer based indexing of interpolated solutions" begin | ||
# include("downstream/symbol_indexing.jl") | ||
# end | ||
# if VERSION >= v"1.8" | ||
# @time @safetestset "Symbol and integer based indexing of integrators" begin | ||
# include("downstream/integrator_indexing.jl") | ||
# end | ||
# @time @safetestset "Problem Indexing" begin | ||
# include("downstream/problem_interface.jl") | ||
# end | ||
# @time @safetestset "Solution Indexing" begin | ||
# include("downstream/solution_interface.jl") | ||
# end | ||
# end | ||
# @time @safetestset "Unitful interpolations" begin | ||
# include("downstream/unitful_interpolations.jl") | ||
# end | ||
# @time @safetestset "Integer idxs" begin | ||
# include("downstream/integer_idxs.jl") | ||
# end | ||
# @time @safetestset "Autodiff Remake" begin | ||
# include("downstream/remake_autodiff.jl") | ||
# end | ||
# end | ||
|
||
# if !is_APPVEYOR && GROUP == "Python" | ||
# activate_python_env() | ||
# @time @safetestset "PyCall" begin | ||
# include("python/pycall.jl") | ||
# end | ||
# end | ||
# end |