Skip to content

Commit c1b651a

Browse files
Move to ParallelTestRunner v2 (#769)
1 parent bc889e7 commit c1b651a

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ demumble_jll = "1e29f10c-031c-5a83-9565-69cddfc27673"
1717

1818
[compat]
1919
Aqua = "0.8"
20-
ParallelTestRunner = "1"
2120
LLVM_jll = "15,16,18,20"
21+
ParallelTestRunner = "2"

test/runtests.jl

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,25 @@ const init_code = quote
1515
using .FileCheck
1616
end
1717

18-
function test_filter(test)
19-
if startswith(test, "helpers/")
20-
return false
18+
testsuite = find_tests(@__DIR__)
19+
args = parse_args(ARGS)
20+
21+
if filter_tests!(testsuite, args)
22+
helperkeys = String[]
23+
for key in collect(keys(testsuite))
24+
startswith(key, "helpers/") && push!(helperkeys, key)
25+
end
26+
for key in helperkeys
27+
delete!(testsuite, key)
2128
end
29+
2230
if LLVM.is_asserts() && test == "gcn"
23-
# XXX: GCN's non-0 stack address space triggers LLVM assertions due to Julia bugs
24-
return false
25-
end
26-
if VERSION < v"1.11" && test in ("ptx/precompile", "native/precompile")
27-
return false
28-
end
29-
return true
31+
delete!(testsuite, "gcn")
32+
end
33+
if VERSION < v"1.11"
34+
delete!(testsuite, "ptx/precompile")
35+
delete!(testsuite, "native/precompile")
36+
end
3037
end
3138

32-
runtests(GPUCompiler, ARGS; init_code, test_filter)
39+
runtests(GPUCompiler, args; testsuite, init_code)

0 commit comments

Comments
 (0)