Skip to content

Commit 5cf9296

Browse files
committed
Update to ParallelTestRunner v2
1 parent b29b5af commit 5cf9296

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1212
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1313

1414
[compat]
15-
ParallelTestRunner = "1"
15+
ParallelTestRunner = "2"

test/runtests.jl

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ParallelTestRunner: runtests
1+
using ParallelTestRunner: runtests, parse_args
22
import GPUArrays
33

44
include("testsuite.jl")
@@ -18,16 +18,11 @@ const init_code = quote
1818
end
1919
end
2020

21-
custom_tests = Dict{String, Expr}()
22-
for AT in (:JLArray, :Array), name in keys(TestSuite.tests)
23-
custom_tests["$(AT)/$name"] = :(TestSuite.tests[$name]($AT))
24-
end
21+
args = parse_args(ARGS)
2522

26-
function test_filter(test)
27-
if startswith(test, "testsuite")
28-
return false
29-
end
30-
return true
23+
testsuite = Dict{String, Expr}()
24+
for AT in (:JLArray, :Array), name in keys(TestSuite.tests)
25+
testsuite["$(AT)/$name"] = :(TestSuite.tests[$name]($AT))
3126
end
3227

33-
runtests(GPUArrays, ARGS; init_code, custom_tests, test_filter)
28+
runtests(GPUArrays, ARGS; init_code, testsuite)

0 commit comments

Comments
 (0)