Skip to content

Commit b156769

Browse files
authored
Merge pull request #171 from DilumAluthge/dpa/test-suite-assert-time-is-less-than
Add a test that will fail if the test suite takes more than two hours
2 parents 86a3955 + 1ca8722 commit b156769

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/runtests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
using Test
22
using LoopVectorization
33
using LinearAlgebra
4-
54
import InteractiveUtils
65

76
InteractiveUtils.versioninfo(stdout; verbose = true)
87

9-
# const START_TIME = time()
10-
# exceeds_time_limit() = (time() - START_TIME) > 35 * 60
8+
const START_TIME = time()
119

1210
function clenshaw(x, coeff)
1311
len_c = length(coeff)
@@ -79,3 +77,6 @@ const RUN_SLOW_TESTS = LoopVectorization.REGISTER_COUNT ≤ 16 || !parse(Bool, g
7977

8078
@time include("gemm.jl")
8179
end
80+
81+
const ELAPSED_MINUTES = (time() - START_TIME)/60
82+
@test ELAPSED_MINUTES < 120

0 commit comments

Comments
 (0)