Skip to content

Commit

Permalink
Fix CPU tests (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored Mar 24, 2021
1 parent e859777 commit af7de5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/FoldsCUDATests/src/FoldsCUDATests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ module FoldsCUDATests
using GPUArrays
using Test

function include_tests(dir)
function include_tests(m = @__MODULE__, dir = @__DIR__)
for file in readdir(dir)
if match(r"^test_.*\.jl$", file) !== nothing
include(joinpath(dir, file))
Base.include(m, joinpath(dir, file))
end
end
end

include_tests(@__DIR__)
include_tests()

module Generic
using ..FoldsCUDATests: include_tests
include_tests(joinpath(@__DIR__, "generic"))
include_tests(@__MODULE__, joinpath(@__DIR__, "generic"))
end

should_test_gpu() =
Expand Down

0 comments on commit af7de5f

Please sign in to comment.