Skip to content

Commit 1c99b92

Browse files
add Aqua tests (disabled on buildkite)
1 parent 1bbe0da commit 1c99b92

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
88
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
99

1010
[extras]
11+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1112
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1213
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1314

1415
[targets]
15-
test = ["LinearAlgebra", "Test"]
16+
test = ["Aqua", "LinearAlgebra", "Test"]

test/aqua.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Aqua
2+
using Distributed
3+
4+
Aqua.test_all(
5+
Distributed,
6+
# This should be excluded, but it's not clear how to do that on Aqua's API
7+
# given it's not-defined. (The Julia Base ambiguity test does it something like this)
8+
# ambiguities=(exclude=[GlobalRef(Distributed, :cluster_manager)])
9+
)

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
using Test
44
using Distributed
55

6+
if !Base.get_bool_env("BUILDKITE", false)
7+
@testset "Aqua.jl tests" begin
8+
include("aqua.jl")
9+
end
10+
end
11+
612
allowed_undefineds = Set([GlobalRef(Distributed, :cluster_manager)])
713
@test isempty(detect_ambiguities(Distributed; allowed_undefineds))
814

0 commit comments

Comments
 (0)