-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathruntests.jl
More file actions
105 lines (103 loc) · 3.23 KB
/
runtests.jl
File metadata and controls
105 lines (103 loc) · 3.23 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
using Aqua
using Documenter
using JET
using JuliaFormatter
using SparseMatrixColorings
using Test
# Load package extensions to test them with JET
using Colors: Colors
@testset verbose = true "SparseMatrixColorings" begin
if get(ENV, "JULIA_SMC_TEST_GROUP", nothing) == "GPU"
@testset "CUDA" begin
using CUDA
if CUDA.functional()
include("cuda.jl")
end
end
@testset "ROCm" begin
using AMDGPU
if AMDGPU.functional()
include("rocm.jl")
end
end
else
include("utils.jl")
@testset verbose = true "Code quality" begin
@testset "Aqua" begin
Aqua.test_all(SparseMatrixColorings; stale_deps=(; ignore=[:Requires],))
end
@testset "JET" begin
JET.test_package(SparseMatrixColorings; target_defined_modules=true)
end
# @testset "JuliaFormatter" begin
# TODO: switch to Runic (temporarily deactivated)
# @test JuliaFormatter.format(
# SparseMatrixColorings; verbose=false, overwrite=false
# )
# end
@testset "Doctests" begin
Documenter.doctest(SparseMatrixColorings)
end
end
@testset verbose = true "Internals" begin
@testset "Graph" begin
include("graph.jl")
end
@testset "Forest" begin
include("forest.jl")
end
@testset "Order" begin
include("order.jl")
end
@testset "Check" begin
include("check.jl")
end
@testset "Matrices" begin
include("matrices.jl")
end
@testset "Constructors" begin
include("constructors.jl")
end
@testset "Result" begin
include("result.jl")
end
@testset "Constant coloring" begin
include("constant.jl")
end
@testset "Optimal coloring" begin
include("optimal.jl")
end
@testset "ADTypes coloring algorithms" begin
include("adtypes.jl")
end
@testset "Visualization" begin
include("show_colors.jl")
end
end
@testset verbose = true "Correctness" begin
@testset "Small instances" begin
include("small.jl")
end
@testset "Random instances" begin
include("random.jl")
end
@testset "Structured matrices" begin
include("structured.jl")
end
@testset "Instances with known colorings" begin
include("theory.jl")
end
@testset "SuiteSparse" begin
include("suitesparse.jl")
end
end
@testset verbose = true "Performance" begin
@testset "Type stability" begin
include("type_stability.jl")
end
@testset "Allocations" begin
include("allocations.jl")
end
end
end
end