Skip to content

Commit 8ae152b

Browse files
authored
Revert back to our hand-rolled test runner. (#658)
1 parent a9b5a82 commit 8ae152b

24 files changed

+635
-360
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
test/Manifest.toml
2+
test/LocalPreferences.toml
23
Manifest.toml
34
Manifest-*.toml

test/Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[deps]
22
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3+
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
4+
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
35
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
46
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"
57
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
68
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
9+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
710
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
8-
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
11+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
912
SPIRV_LLVM_Translator_unified_jll = "85f0d8ed-5b39-5caa-b1ae-7472de402361"
1013
SPIRV_Tools_jll = "6ac6d60f-d740-5983-97d7-a4482c0689f4"
1114
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
@@ -14,3 +17,6 @@ demumble_jll = "1e29f10c-031c-5a83-9565-69cddfc27673"
1417

1518
[compat]
1619
Aqua = "0.8"
20+
21+
[extras]
22+
GPUCompiler = "61eb1bfa-7361-4325-ad38-22787b887f55"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
@testitem "Aqua" begin
2-
31
using Aqua
42

53
Aqua.test_all(GPUCompiler)
6-
7-
end

test/bpf_tests.jl renamed to test/bpf.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
@testitem "BPF" setup=[BPF, Helpers] begin
2-
3-
############################################################################################
4-
51
@testset "No-op" begin
62
kernel() = 0
73

@@ -40,5 +36,3 @@ end
4036
@test_throws GPUCompiler.InvalidIRError BPF.code_execution(kernel, (Int,))
4137
end
4238
end
43-
44-
end

test/examples_tests.jl renamed to test/examples.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@testitem "examples" begin
2-
31
function find_sources(path::String, sources=String[])
42
if isdir(path)
53
for entry in readdir(path)
@@ -23,5 +21,3 @@ cd(dir) do
2321
@test success(pipeline(`$cmd $example`, stderr=stderr))
2422
end
2523
end
26-
27-
end

test/gcn_tests.jl renamed to test/gcn.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
@testitem "GCN" setup=[GCN, Helpers] begin
2-
3-
@inline sink_gcn(i) = sink(i, Val(5))
4-
5-
@test GCNCompilerTarget(dev_isa="gfx900") == GCNCompilerTarget("gfx900")
6-
7-
############################################################################################
8-
91
@testset "IR" begin
102

113
@testset "kernel calling convention" begin
@@ -222,7 +214,3 @@ end
222214
end
223215

224216
end
225-
226-
############################################################################################
227-
228-
end

test/bpf_testsetup.jl renamed to test/helpers/bpf.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
@testsetup module BPF
1+
module BPF
22

3-
using GPUCompiler
3+
using ..GPUCompiler
4+
import ..TestRuntime
45

5-
6-
# create a native test compiler, and generate reflection methods for it
7-
8-
include("runtime.jl")
96
struct CompilerParams <: AbstractCompilerParams end
107
GPUCompiler.runtime_module(::CompilerJob{<:Any,CompilerParams}) = TestRuntime
118

test/gcn_testsetup.jl renamed to test/helpers/gcn.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
@testsetup module GCN
1+
module GCN
22

3-
using GPUCompiler
3+
using ..GPUCompiler
4+
import ..TestRuntime
45

5-
6-
# create a GCN-based test compiler, and generate reflection methods for it
7-
8-
include("runtime.jl")
96
struct CompilerParams <: AbstractCompilerParams end
107
GPUCompiler.runtime_module(::CompilerJob{<:Any,CompilerParams}) = TestRuntime
118

test/metal_testsetup.jl renamed to test/helpers/metal.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
@testsetup module Metal
1+
module Metal
22

3-
using GPUCompiler
3+
using ..GPUCompiler
4+
import ..TestRuntime
45

5-
6-
# create a Metal test compiler, and generate reflection methods for it
7-
8-
include("runtime.jl")
96
struct CompilerParams <: AbstractCompilerParams end
107
GPUCompiler.runtime_module(::CompilerJob{<:Any,CompilerParams}) = TestRuntime
118

test/native_testsetup.jl renamed to test/helpers/native.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
@testsetup module Native
1+
module Native
22

3-
using GPUCompiler
4-
5-
6-
# create a native test compiler, and generate reflection methods for it
7-
8-
include("runtime.jl")
3+
using ..GPUCompiler
4+
import ..TestRuntime
95

106
# local method table for device functions
117
Base.Experimental.@MethodTable(test_method_table)

0 commit comments

Comments
 (0)