Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
ParallelTestRunner = "1"
ParallelTestRunner = "2"
17 changes: 6 additions & 11 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ParallelTestRunner: runtests
using ParallelTestRunner: runtests, parse_args
import GPUArrays

include("testsuite.jl")
Expand All @@ -18,16 +18,11 @@ const init_code = quote
end
end

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

function test_filter(test)
if startswith(test, "testsuite")
return false
end
return true
testsuite = Dict{String, Expr}()
for AT in (:JLArray, :Array), name in keys(TestSuite.tests)
testsuite["$(AT)/$name"] = :(TestSuite.tests[$name]($AT))
end

runtests(GPUArrays, ARGS; init_code, custom_tests, test_filter)
runtests(GPUArrays, ARGS; init_code, testsuite)
Loading