-
-
Notifications
You must be signed in to change notification settings - Fork 259
Expand file tree
/
Copy pathruntests.jl
More file actions
28 lines (23 loc) · 870 Bytes
/
runtests.jl
File metadata and controls
28 lines (23 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Pkg
using SafeTestsets
const TEST_GROUP = get(ENV, "ODEDIFFEQ_TEST_GROUP", "ALL")
function activate_gpu_env()
Pkg.activate(joinpath(@__DIR__, "gpu"))
return Pkg.instantiate()
end
# Run GPU tests
if TEST_GROUP == "GPU"
activate_gpu_env()
@time @safetestset "Simple GPU" include("gpu/simple_gpu.jl")
@time @safetestset "Hermite Interpolation GPU" include("gpu/hermite_test.jl")
end
# Run QA tests (JET, Aqua)
if (TEST_GROUP == "QA" || TEST_GROUP == "ALL") && isempty(VERSION.prerelease)
@time @safetestset "JET Tests" include("jet.jl")
@time @safetestset "Aqua" include("qa.jl")
end
# Functional tests
if TEST_GROUP == "Core" || TEST_GROUP == "ALL"
@time @safetestset "Sparse isdiag Performance" include("sparse_isdiag_tests.jl")
@time @safetestset "Algebraic Vars Detection" include("algebraic_vars_detection_tests.jl")
end