Skip to content

Commit adf7156

Browse files
committed
setup buildkite
1 parent 8349fd5 commit adf7156

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/runtests.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# ------------
33
using ArgParse: ArgParse
44
using SafeTestsets: @safetestset
5+
# using CUDA: CUDA
6+
# using AMDGPU: AMDGPU
57

68
function parse_commandline(args = ARGS)
79
s = ArgParse.ArgParseSettings()
@@ -30,6 +32,9 @@ checktestgroup(group) = isdir(joinpath(@__DIR__, group)) ||
3032
throw(ArgumentError("Invalid group ($group), no such folder"))
3133
foreach(checktestgroup, groups)
3234

35+
# don't run all tests on GPU, only the GPU specific ones
36+
is_buildkite = get(ENV, "BUILDKITE", "false") == "true"
37+
3338
# Run test groups
3439
# ---------------
3540

@@ -39,6 +44,16 @@ istestfile(fn) = endswith(fn, ".jl") && !contains(fn, "setup")
3944
# process test groups
4045
@time for group in groups
4146
@info "Running test group: $group"
47+
48+
# handle GPU cases separately
49+
if group == "cuda"
50+
# CUDA.functional() || continue
51+
elseif group == "amd"
52+
# AMDGPU.functional() || continue
53+
elseif is_buildkite
54+
continue
55+
end
56+
4257
grouppath = joinpath(@__DIR__, group)
4358
@time for file in filter(istestfile, readdir(grouppath))
4459
@info "Running test file: $file"

0 commit comments

Comments
 (0)