-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntests.jl
29 lines (25 loc) · 890 Bytes
/
runtests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using KernelFunctions: KernelFunctions as KF, MaternKernel, SEKernel, RationalQuadraticKernel, Matern32Kernel, Matern52Kernel
using DifferentiableKernelFunctions: DifferentiableKernelFunctions as DKF, EnableDiff, partial
using ProductArrays: productArray
using Test
"""
List of Testfiles without extension. `\$(test).jl"` should be a file for every test in AVAILABLE_TESTS
"""
const AVAILABLE_TESTS = [
"diffKernel",
"partial"
]
function test_selection()
group_str = get(ENV, "TESTSET", missing)
if ismissing(group_str)
return AVAILABLE_TESTS
else
return split(group_str, ",")
end
end
# To select a specific set the "TESTSET" variable (in particular you can also set it to "folder/subfolder/test" not in AVAILABLE_TESTS)
@testset "DifferentiableKernelFunctions.jl" begin
for test in test_selection()
include("$(test).jl")
end
end