Skip to content

Commit

Permalink
Prepare test setup for CI tests triggered from upstream (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
sloede and ranocha authored Nov 8, 2023
1 parent 8dd61ce commit 789da3e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
using Test

@testset "Trixi2Vtk" begin
include("test_2d.jl")
include("test_3d.jl")
include("test_manual.jl")
# We use the `TRIXI_TEST` environment variable to determine the subset of tests to execute.
const TRIXI_TEST = get(ENV, "TRIXI_TEST", "all")

@time @testset "Trixi2Vtk" begin
@time if TRIXI_TEST == "all" || TRIXI_TEST == "2d" || TRIXI_TEST == "upstream"
include("test_2d.jl")
end

@time if TRIXI_TEST == "all" || TRIXI_TEST == "3d" || TRIXI_TEST == "upstream"
include("test_3d.jl")
end

@time if TRIXI_TEST == "all" || TRIXI_TEST == "manual"
include("test_manual.jl")
end
end

0 comments on commit 789da3e

Please sign in to comment.