|
54 | 54 | include("setup.jl") # make sure everything is precompiled
|
55 | 55 |
|
56 | 56 | # choose tests
|
57 |
| -const tests = ["core/initialization"] # needs to run first |
| 57 | +const tests = [] |
58 | 58 | const test_runners = Dict()
|
59 |
| -## GPUArrays testsuite |
60 |
| -for name in keys(TestSuite.tests) |
61 |
| - if CUDA.default_memory != Mem.Device && name == "indexing scalar" |
62 |
| - # GPUArrays' scalar indexing tests assume that indexing is not supported |
63 |
| - continue |
64 |
| - end |
65 |
| - push!(tests, "gpuarrays/$name") |
66 |
| - test_runners["gpuarrays/$name"] = ()->TestSuite.tests[name](CuArray) |
67 |
| -end |
68 | 59 | ## files in the test folder
|
69 | 60 | for (rootpath, dirs, files) in walkdir(@__DIR__)
|
70 | 61 | # find Julia files
|
@@ -92,11 +83,22 @@ for (rootpath, dirs, files) in walkdir(@__DIR__)
|
92 | 83 | end
|
93 | 84 |
|
94 | 85 | append!(tests, files)
|
95 |
| - sort(files; by=(file)->stat("$(@__DIR__)/$file.jl").size, rev=true) # large (slow) tests first |
96 | 86 | for file in files
|
97 | 87 | test_runners[file] = ()->include("$(@__DIR__)/$file.jl")
|
98 | 88 | end
|
99 | 89 | end
|
| 90 | +sort!(tests; by=(file)->stat("$(@__DIR__)/$file.jl").size, rev=true) |
| 91 | +## GPUArrays testsuite |
| 92 | +for name in keys(TestSuite.tests) |
| 93 | + if CUDA.default_memory != Mem.Device && name == "indexing scalar" |
| 94 | + # GPUArrays' scalar indexing tests assume that indexing is not supported |
| 95 | + continue |
| 96 | + end |
| 97 | + pushfirst!(tests, "gpuarrays/$name") |
| 98 | + test_runners["gpuarrays/$name"] = ()->TestSuite.tests[name](CuArray) |
| 99 | +end |
| 100 | +## finalize |
| 101 | +pushfirst!(tests, "core/initialization") |
100 | 102 | unique!(tests)
|
101 | 103 |
|
102 | 104 | # list tests, if requested
|
|
0 commit comments