Skip to content

Commit

Permalink
Add Aqua testing (#116)
Browse files Browse the repository at this point in the history
* add Aqua and ExplicitImports testing

* format

* remove ExplicitImports.jl again
  • Loading branch information
JoshuaLampert authored Mar 15, 2024
1 parent 5c6bb24 commit 991d0ff
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Build Status](https://github.com/trixi-framework/P4est.jl/workflows/CI/badge.svg)](https://github.com/trixi-framework/P4est.jl/actions?query=workflow%3ACI)
[![Codecov](https://codecov.io/gh/trixi-framework/P4est.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/trixi-framework/P4est.jl)
[![Coveralls](https://coveralls.io/repos/github/trixi-framework/P4est.jl/badge.svg?branch=main)](https://coveralls.io/github/trixi-framework/P4est.jl?branch=main)
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/P4est)](https://pkgs.genieframework.com?packages=P4est)

Expand Down
2 changes: 1 addition & 1 deletion src/LibP4est.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module LibP4est

using CEnum
using CEnum: CEnum, @cenum

to_c_type(t::Type) = t
to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type)
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.7, 0.8"
MPI = "0.20"
MPIPreferences = "0.1.3"
Test = "1"
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MPIPreferences
@info "Testing P4est.jl with" MPIPreferences.binary MPIPreferences.abi

@time @testset "P4est.jl tests" begin
include("test_aqua.jl")
# For some weird reason, the MPI tests must come first since they fail
# otherwise with a custom MPI installation.
@time @testset "MPI" begin
Expand Down
11 changes: 11 additions & 0 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module TestAqua

using Aqua
using Test
using P4est

@testset "Aqua.jl" begin
Aqua.test_all(P4est; unbound_args = false)
end

end #module

0 comments on commit 991d0ff

Please sign in to comment.