Skip to content

Commit

Permalink
Backwards compatibility with Test.jl.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Feb 8, 2021
1 parent 1a5f6ee commit 54b4044
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 8 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
using GPUArrays, XUnit
using GPUArrays

@testset "GPUArrays" runner=ParallelTestRunner() begin
try
using XUnit
catch
using Test
end

@testset "GPUArrays" begin

include("testsuite.jl")

Expand Down
7 changes: 6 additions & 1 deletion test/testsuite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ export supported_eltypes

using GPUArrays

using XUnit
try
using XUnit
catch
using Test
@eval $(Symbol("@testcase")) = $(getfield(Test, Symbol("@testset")))
end

using LinearAlgebra
using Random
Expand Down

0 comments on commit 54b4044

Please sign in to comment.