Skip to content

Commit f71ab32

Browse files
committed
choosetests: move testnames array at top-level
This allows scripts loading this file to know the list of tests.
1 parent 70771b2 commit f71ab32

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

test/choosetests.jl

Lines changed: 27 additions & 27 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
@@ -32,32 +58,6 @@ in the `choices` argument:
3258
This option can be used to reproduce failed tests.
3359
"""
3460
function choosetests(choices = [])
35-
testnames = [
36-
"subarray", "core", "compiler", "worlds", "atomics",
37-
"keywordargs", "numbers", "subtype",
38-
"char", "strings", "triplequote", "unicode", "intrinsics",
39-
"dict", "hashing", "iobuffer", "staged", "offsetarray",
40-
"arrayops", "tuple", "reduce", "reducedim", "abstractarray",
41-
"intfuncs", "simdloop", "vecelement", "rational",
42-
"bitarray", "copy", "math", "fastmath", "functional", "iterators",
43-
"operators", "ordering", "path", "ccall", "parse", "loading", "gmp",
44-
"sorting", "spawn", "backtrace", "exceptions",
45-
"file", "read", "version", "namedtuple",
46-
"mpfr", "broadcast", "complex",
47-
"floatapprox", "stdlib", "reflection", "regex", "float16",
48-
"combinatorics", "sysinfo", "env", "rounding", "ranges", "mod2pi",
49-
"euler", "show", "client",
50-
"errorshow", "sets", "goto", "llvmcall", "llvmcall2", "ryu",
51-
"some", "meta", "stacktraces", "docs",
52-
"misc", "threads", "stress", "binaryplatforms", "atexit",
53-
"enums", "cmdlineargs", "int", "interpreter",
54-
"checked", "bitset", "floatfuncs", "precompile",
55-
"boundscheck", "error", "ambiguous", "cartesian", "osutils",
56-
"channels", "iostream", "secretbuffer", "specificity",
57-
"reinterpretarray", "syntax", "corelogging", "missing", "asyncmap",
58-
"smallarrayshrink", "opaque_closure", "filesystem", "download"
59-
]
60-
6161
tests = []
6262
skip_tests = []
6363
exit_on_error = false
@@ -80,7 +80,7 @@ function choosetests(choices = [])
8080
end
8181

8282
if tests == ["all"] || isempty(tests)
83-
tests = testnames
83+
tests = TESTNAMES
8484
end
8585

8686
function filtertests!(tests, name, files=[name])

0 commit comments

Comments
 (0)