Skip to content

Commit 1dca956

Browse files
rfourquetKristofferC
authored andcommitted
choosetests: move testnames array at top-level (#40182)
This allows scripts loading this file to know the list of tests. (cherry picked from commit 82784fe)
1 parent 41f4756 commit 1dca956

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

test/choosetests.jl

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ using Random, Sockets
55
const STDLIB_DIR = Sys.STDLIB
66
const STDLIBS = filter!(x -> isfile(joinpath(STDLIB_DIR, x, "src", "$(x).jl")), readdir(STDLIB_DIR))
77

8+
const TESTNAMES = [
9+
"subarray", "core", "compiler", "worlds", "atomics",
10+
"keywordargs", "numbers", "subtype",
11+
"char", "strings", "triplequote", "unicode", "intrinsics",
12+
"dict", "hashing", "iobuffer", "staged", "offsetarray",
13+
"arrayops", "tuple", "reduce", "reducedim", "abstractarray",
14+
"intfuncs", "simdloop", "vecelement", "rational",
15+
"bitarray", "copy", "math", "fastmath", "functional", "iterators",
16+
"operators", "ordering", "path", "ccall", "parse", "loading", "gmp",
17+
"sorting", "spawn", "backtrace", "exceptions",
18+
"file", "read", "version", "namedtuple",
19+
"mpfr", "broadcast", "complex",
20+
"floatapprox", "stdlib", "reflection", "regex", "float16",
21+
"combinatorics", "sysinfo", "env", "rounding", "ranges", "mod2pi",
22+
"euler", "show", "client",
23+
"errorshow", "sets", "goto", "llvmcall", "llvmcall2", "ryu",
24+
"some", "meta", "stacktraces", "docs",
25+
"misc", "threads", "stress", "binaryplatforms", "atexit",
26+
"enums", "cmdlineargs", "int", "interpreter",
27+
"checked", "bitset", "floatfuncs", "precompile",
28+
"boundscheck", "error", "ambiguous", "cartesian", "osutils",
29+
"channels", "iostream", "secretbuffer", "specificity",
30+
"reinterpretarray", "syntax", "corelogging", "missing", "asyncmap",
31+
"smallarrayshrink", "opaque_closure", "filesystem", "download"
32+
]
33+
834
"""
935
1036
`(; tests, net_on, exit_on_error, seed) = choosetests(choices)` selects a set of tests to be
@@ -34,32 +60,6 @@ in the `choices` argument:
3460
- "--help-list", which prints the options computed without running them.
3561
"""
3662
function choosetests(choices = [])
37-
testnames = [
38-
"subarray", "core", "compiler", "worlds", "atomics",
39-
"keywordargs", "numbers", "subtype",
40-
"char", "strings", "triplequote", "unicode", "intrinsics",
41-
"dict", "hashing", "iobuffer", "staged", "offsetarray",
42-
"arrayops", "tuple", "reduce", "reducedim", "abstractarray",
43-
"intfuncs", "simdloop", "vecelement", "rational",
44-
"bitarray", "copy", "math", "fastmath", "functional", "iterators",
45-
"operators", "ordering", "path", "ccall", "parse", "loading", "gmp",
46-
"sorting", "spawn", "backtrace", "exceptions",
47-
"file", "read", "version", "namedtuple",
48-
"mpfr", "broadcast", "complex",
49-
"floatapprox", "stdlib", "reflection", "regex", "float16",
50-
"combinatorics", "sysinfo", "env", "rounding", "ranges", "mod2pi",
51-
"euler", "show", "client",
52-
"errorshow", "sets", "goto", "llvmcall", "llvmcall2", "ryu",
53-
"some", "meta", "stacktraces", "docs",
54-
"misc", "threads", "stress", "binaryplatforms", "atexit",
55-
"enums", "cmdlineargs", "int", "interpreter",
56-
"checked", "bitset", "floatfuncs", "precompile",
57-
"boundscheck", "error", "ambiguous", "cartesian", "osutils",
58-
"channels", "iostream", "secretbuffer", "specificity",
59-
"reinterpretarray", "syntax", "corelogging", "missing", "asyncmap",
60-
"smallarrayshrink", "opaque_closure", "filesystem", "download"
61-
]
62-
6363
tests = []
6464
skip_tests = Set()
6565
exit_on_error = false

0 commit comments

Comments
 (0)