We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f41a8f8 commit fb52730Copy full SHA for fb52730
test/runtests.jl
@@ -18,16 +18,19 @@ end
18
19
function test_path(test)
20
if test in STDLIBS
21
- test_file = joinpath(STDLIB_DIR, test, "test", "runtests")
22
- if !isfile(test_file * ".jl")
23
- error("Standard library $test did not provide a `test/runtests.jl` file")
24
- end
25
- return test_file
+ return joinpath(STDLIB_DIR, test, "test", "runtests")
26
else
27
- return test
+ return joinpath(@__DIR__, test)
28
end
29
30
+# Check all test files exist
+isfiles = isfile.(test_path.(tests) .* ".jl")
+if any(equalto(false), isfiles)
+ error("did not find test files for the following tests: ",
31
+ join(tests[.!(isfiles)], ", "))
32
+end
33
+
34
const node1_tests = String[]
35
function move_to_node1(t)
36
if t in tests
0 commit comments