Skip to content

Commit 2abe919

Browse files
IanButterworthKristofferC
authored andcommitted
Add Aqua tests. Add missing compats (#4150)
(cherry picked from commit 5e6c457)
1 parent 8fb6dce commit 2abe919

File tree

4 files changed

+49
-21
lines changed

4 files changed

+49
-21
lines changed

Project.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,20 @@ REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
3232
REPLExt = "REPL"
3333

3434
[compat]
35+
Artifacts = "1.11"
36+
Dates = "1.11"
37+
Downloads = "1.6"
38+
FileWatching = "1.11"
39+
LibGit2 = "1.11"
40+
Libdl = "1.11"
41+
Logging = "1.11"
42+
Markdown = "1.11"
43+
Printf = "1.11"
44+
Random = "1.11"
45+
REPL = "1.11"
46+
SHA = "0.7"
47+
TOML = "1"
48+
Tar = "1.10"
49+
UUIDs = "1.11"
3550
julia = "1.12"
51+
p7zip_jll = "17.5"

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
34
HistoricalStdlibVersions = "6df8b67a-e8a0-4029-b4b7-ac196fe72102"
45
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
@@ -15,4 +16,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1516
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1617

1718
[compat]
19+
Aqua = "0.8.10"
1820
HistoricalStdlibVersions = "2"

test/aqua.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
using Aqua
2+
Aqua.test_all(Pkg)

test/runtests.jl

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,29 +67,37 @@ Logging.with_logger((islogging || Pkg.DEFAULT_IO[] == devnull) ? Logging.Console
6767

6868
Utils.check_init_reg()
6969

70+
test_files = [
71+
"new.jl",
72+
"pkg.jl",
73+
"repl.jl",
74+
"api.jl",
75+
"registry.jl",
76+
"subdir.jl",
77+
"extensions.jl",
78+
"artifacts.jl",
79+
"binaryplatforms.jl",
80+
"platformengines.jl",
81+
"sandbox.jl",
82+
"resolve.jl",
83+
"misc.jl",
84+
"force_latest_compatible_version.jl",
85+
"manifests.jl",
86+
"project_manifest.jl",
87+
"sources.jl",
88+
"workspaces.jl",
89+
"apps.jl",
90+
]
91+
92+
# Only test these if the test deps are available (they aren't typically via `Base.runtests`)
93+
Aqua_pkgid = Base.PkgId(Base.UUID("4c88cf16-eb10-579e-8560-4a9242c79595"), "Aqua")
94+
if Base.locate_package(Aqua_pkgid) !== nothing
95+
push!(test_files, "aqua.jl")
96+
end
97+
7098
@testset "Pkg" begin
7199
try
72-
@testset "$f" for f in [
73-
"new.jl",
74-
"pkg.jl",
75-
"repl.jl",
76-
"api.jl",
77-
"registry.jl",
78-
"subdir.jl",
79-
"extensions.jl",
80-
"artifacts.jl",
81-
"binaryplatforms.jl",
82-
"platformengines.jl",
83-
"sandbox.jl",
84-
"resolve.jl",
85-
"misc.jl",
86-
"force_latest_compatible_version.jl",
87-
"manifests.jl",
88-
"project_manifest.jl",
89-
"sources.jl",
90-
"workspaces.jl",
91-
"apps.jl",
92-
]
100+
@testset "$f" for f in test_files
93101
@info "==== Testing `test/$f`"
94102
flush(Pkg.DEFAULT_IO[])
95103
include(f)

0 commit comments

Comments
 (0)