Skip to content

Commit

Permalink
Add JET to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jul 8, 2024
1 parent 121292a commit a507084
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ZeroMQ_jll = "8f1865be-045e-5c20-9c9f-bfbfb0764568"
[compat]
Aqua = "0.8.7"
FileWatching = "<0.0.1, 1"
JET = "0.8"
PrecompileTools = "1"
Sockets = "<0.0.1, 1"
Test = "<0.0.1, 1"
Expand All @@ -19,7 +20,8 @@ julia = "1.3"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Test"]
test = ["Aqua", "Test", "JET"]
14 changes: 13 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Aqua
using ZMQ, Test

@info("Testing with ZMQ version $(ZMQ.version)")

@info "Testing with ZMQ version $(ZMQ.lib_version())"

@testset "ZMQ contexts" begin
ctx=Context()
Expand Down Expand Up @@ -219,6 +220,17 @@ end
@test ZMQ.lib_version() isa VersionNumber
end

# Note: Aqua and JET are kinda slow, if you're developing locally you may want
# to comment them out temporarily.
@testset "Aqua.jl" begin
Aqua.test_all(ZMQ)
end

# Only run JET on recent Julia versions
@static if VERSION > v"1.10"
import JET

@testset "JET.jl" begin
JET.report_package(ZMQ)
end
end

0 comments on commit a507084

Please sign in to comment.