Skip to content

Commit

Permalink
Add Aqua to tests (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreener64 authored May 14, 2023
1 parent c2b4445 commit 96ddde3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/utils.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

function get_function!(mod::LLVM.Module, name, FT::LLVM.FunctionType, attrs=[])
function get_function!(mod::LLVM.Module, name::AbstractString, FT::LLVM.FunctionType, attrs=[])
if haskey(functions(mod), name)
F = functions(mod)[name]
PT = LLVM.PointerType(FT)
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Enzyme_jll = "7cc45869-7501-5eee-bdea-0790c847d4ef"
Expand All @@ -15,4 +16,5 @@ TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.6"
CUDA = "4.1"
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ using Enzyme
using Test
using FiniteDifferences
using ForwardDiff
using Aqua
using Statistics
using LinearAlgebra

Expand Down Expand Up @@ -61,6 +62,8 @@ function test_matrix_to_number(f, x; rtol=1e-9, atol=1e-9, fdm=central_fdm(5, 1)
@test isapprox(dx_fwd, dx_fd; rtol=rtol, atol=atol, kwargs...)
end

Aqua.test_all(Enzyme, unbound_args=false, piracy=false)

include("abi.jl")
include("typetree.jl")

Expand Down

0 comments on commit 96ddde3

Please sign in to comment.