Skip to content

Commit 9b97847

Browse files
committed
Make testsuite easier to reuse.
1 parent a27dcc4 commit 9b97847

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/testsuite.jl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ include("testsuite/linalg.jl")
4444
include("testsuite/mapreduce.jl")
4545
include("testsuite/base.jl")
4646
include("testsuite/indexing.jl")
47-
# include("testsuite/vector.jl")
47+
include("testsuite/vector.jl")
4848
include("testsuite/random.jl")
4949

5050
function supported_eltypes()
@@ -57,14 +57,9 @@ end
5757

5858

5959
"""
60-
Runs the GPUArrays test suite on array type `Typ`
60+
Runs the entire GPUArrays test suite on array type `Typ`
6161
"""
6262
function test(Typ)
63-
# TODO: more fine-grained allowscalar within test_indexing
64-
GPUArrays.allowscalar(true)
65-
TestSuite.test_indexing(Typ)
66-
67-
GPUArrays.allowscalar(false)
6863
TestSuite.test_gpuinterface(Typ)
6964
TestSuite.test_base(Typ)
7065
TestSuite.test_blas(Typ)
@@ -73,5 +68,7 @@ function test(Typ)
7368
TestSuite.test_fft(Typ)
7469
TestSuite.test_linalg(Typ)
7570
TestSuite.test_mapreduce(Typ)
71+
TestSuite.test_indexing(Typ)
72+
#TestSuite.test_vectors(Typ)
7673
TestSuite.test_random(Typ)
7774
end

src/testsuite/indexing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
function test_indexing(Typ)
2-
@testset "indexing" begin
2+
# TODO: more fine-grained allowscalar within test_indexing
3+
GPUArrays.@allowscalar @testset "indexing" begin
34
for T in (Float32, Int32#=, SVector{3, Float32}=#)
45
@testset "Indexing with $T" begin
56
x = rand(T, 32)

0 commit comments

Comments
 (0)