Skip to content

Commit c12e412

Browse files
committed
First fix
1 parent 943fca0 commit c12e412

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/runtests.jl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
using Test
22

33
# TODO fix allocation tests
4-
# see: https://github.com/JuliaArrays/FixedSizeArrays.jl/blob/d17373edf4144a672cd80a062bf24d017f01e42f/test/runtests.jl#L6-L17
54
# and: https://github.com/JuliaArrays/FixedSizeArrays.jl/blob/d17373edf4144a672cd80a062bf24d017f01e42f/.github/workflows/UnitTests.yml
5+
6+
# Check if the compilation options allow maximum performance.
7+
const build_is_production_build_env_name = "BUILD_IS_PRODUCTION_BUILD"
8+
const build_is_production_build = let v = get(ENV, build_is_production_build_env_name, "true")
9+
if v ("false", "true")
10+
error("unknown value for environment variable $build_is_production_build_env_name: $v")
11+
end
12+
if v == "true"
13+
true
14+
else
15+
false
16+
end
17+
end::Bool
18+
619
cd("..")
720
println("Running tests...")
821
@testset verbose = true "Testing VortexStepMethod..." begin

0 commit comments

Comments
 (0)