Skip to content

Commit 3dee1b2

Browse files
add Aqua.jl tests (#61)
1 parent 7cc1760 commit 3dee1b2

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# T8code.jl
22

33
[![All Tests Status](https://github.com/DLR-AMR/T8code.jl/actions/workflows/test.yml/badge.svg)](https://github.com/DLR-AMR/T8code.jl/actions/workflows/test.yml)
4+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
45
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](https://opensource.org/licenses/MIT)
56

67

src/Libt8.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Libt8
22

3-
using CEnum
3+
using CEnum: CEnum, @cenum
44

55
to_c_type(t::Type) = t
66
to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type)
@@ -41,7 +41,7 @@ end
4141
const ptrdiff_t = Cptrdiff_t
4242

4343
# Definitions used from MPI.jl
44-
using MPI: MPI, MPI_Datatype, MPI_Comm, MPI_Group, MPI_File
44+
using MPI: MPI, MPI_Datatype, MPI_Comm, MPI_File
4545

4646
const MPI_COMM_WORLD = MPI.COMM_WORLD
4747
const MPI_COMM_SELF = MPI.COMM_SELF

src/T8code.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module T8code
22

33
using Reexport: @reexport
4-
using Libdl
4+
using Libdl: Libdl
55

66
using MPIPreferences: MPIPreferences
77
# We need to load the preference setting from here and not from `Libt8.jl`

test/Project.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
34
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
45
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
56

67
[compat]
8+
Aqua = "0.7, 0.8"
79
MPI = "0.20"
810
MPIPreferences = "0.1.3"
911
Test = "1"

test/runtests.jl

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import MPIPreferences
66
@info "Testing T8code.jl with" MPIPreferences.binary MPIPreferences.abi
77

88
@time @testset "T8code.jl tests" begin
9+
include("test_aqua.jl")
910
# For some weird reason, the MPI tests must come first since they fail
1011
# otherwise with a custom MPI installation.
1112
@time @testset "MPI" begin

test/test_aqua.jl

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module TestAqua
2+
3+
using Aqua
4+
using Test
5+
using T8code
6+
7+
@testset "Aqua.jl" begin
8+
Aqua.test_all(T8code)
9+
end
10+
11+
end #module

0 commit comments

Comments
 (0)