Skip to content

Commit 2ae7d33

Browse files
authored
Test suite changes (#2288)
* Fix large test prioritization. * Get rid of Aqua.
1 parent 9306cea commit 2ae7d33

File tree

3 files changed

+13
-60
lines changed

3 files changed

+13
-60
lines changed

test/Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[deps]
22
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
3-
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
43
BFloat16s = "ab4f0b2a-ad5b-11e8-123f-65d77653426b"
54
CUDA_Driver_jll = "4ee394cb-3365-5eb0-8335-949819d2adfc"
65
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
@@ -23,6 +22,3 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2322
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2423
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2524
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
26-
27-
[compat]
28-
Aqua = "0.8"

test/base/aqua.jl

Lines changed: 0 additions & 45 deletions
This file was deleted.

test/runtests.jl

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,8 @@ end
5454
include("setup.jl") # make sure everything is precompiled
5555

5656
# choose tests
57-
const tests = ["core/initialization"] # needs to run first
57+
const tests = []
5858
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
6859
## files in the test folder
6960
for (rootpath, dirs, files) in walkdir(@__DIR__)
7061
# find Julia files
@@ -92,11 +83,22 @@ for (rootpath, dirs, files) in walkdir(@__DIR__)
9283
end
9384

9485
append!(tests, files)
95-
sort(files; by=(file)->stat("$(@__DIR__)/$file.jl").size, rev=true) # large (slow) tests first
9686
for file in files
9787
test_runners[file] = ()->include("$(@__DIR__)/$file.jl")
9888
end
9989
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")
100102
unique!(tests)
101103

102104
# list tests, if requested

0 commit comments

Comments
 (0)