Skip to content

Commit 7b902bd

Browse files
IanButterworthJamesWrigley
authored andcommitted
add Aqua tests (disabled on buildkite)
1 parent d6a97fa commit 7b902bd

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

Project.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,19 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
77
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
88
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
99

10+
[compat]
11+
Aqua = "0.8.10"
12+
LinearAlgebra = "1"
13+
Random = "1"
14+
Serialization = "1"
15+
Sockets = "1"
16+
Test = "1"
17+
julia = "1"
18+
1019
[extras]
20+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1121
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1222
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1323

1424
[targets]
15-
test = ["LinearAlgebra", "Test"]
25+
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

33
using Test
4+
using Distributed
5+
6+
if !Base.get_bool_env("BUILDKITE", false)
7+
@testset "Aqua.jl tests" begin
8+
include("aqua.jl")
9+
end
10+
end
411

512
# Run the distributed test outside of the main driver since it needs its own
613
# set of dedicated workers.

0 commit comments

Comments
 (0)