From 8124037dfb3ec92f62add5b2e83275ef2d943905 Mon Sep 17 00:00:00 2001 From: Michael Schlottke-Lakemper Date: Mon, 11 Sep 2023 05:58:16 +0200 Subject: [PATCH] Add Aqua.jl testing --- test/Project.toml | 2 ++ test/runtests.jl | 1 + test/test_aqua.jl | 13 +++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 test/test_aqua.jl diff --git a/test/Project.toml b/test/Project.toml index 7115a19b441..7f41ffbf720 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,4 +1,5 @@ [compat] +Aqua = "0.7" BSON = "0.3.3" CairoMakie = "0.6, 0.7, 0.8, 0.9, 0.10" Flux = "0.13 - 0.13.12" # TODO: Return to "0.13" once https://github.com/FluxML/Flux.jl/issues/2204 is resolved @@ -8,6 +9,7 @@ OrdinaryDiffEq = "6.49.1" Plots = "1.16" [deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0" CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0" Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6" diff --git a/test/runtests.jl b/test/runtests.jl index f1adbaaf1df..7e195fe7402 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -109,6 +109,7 @@ const TRIXI_NTHREADS = clamp(Sys.CPU_THREADS, 2, 3) @time if TRIXI_TEST == "all" || TRIXI_TEST == "misc_part2" include("test_special_elixirs.jl") + include("test_aqua.jl") end @time if TRIXI_TEST == "all" || TRIXI_TEST == "performance_specializations_part1" diff --git a/test/test_aqua.jl b/test/test_aqua.jl new file mode 100644 index 00000000000..5419e0b7283 --- /dev/null +++ b/test/test_aqua.jl @@ -0,0 +1,13 @@ +module TestAqua + +using Aqua +using Test +using Trixi + +include("test_trixi.jl") + +@timed_testset "Aqua.jl" begin + Aqua.test_all(Trixi) +end + +end #module