@@ -2,6 +2,7 @@ using Distributed
2
2
using Dates
3
3
import REPL
4
4
using Printf: @sprintf
5
+ using Base. Filesystem: path_separator
5
6
6
7
# parse some command-line arguments
7
8
function extract_flag! (args, flag, default= nothing ; typ= typeof (default))
53
54
include (" setup.jl" ) # make sure everything is precompiled
54
55
55
56
# choose tests
56
- const tests = [" core/ initialization" ] # needs to run first
57
+ const tests = [" core$(path_separator) initialization" ] # needs to run first
57
58
const test_runners = Dict ()
58
59
# # GPUArrays testsuite
59
60
for name in keys (TestSuite. tests)
60
- push! (tests, " gpuarrays$(Base . Filesystem . path_separator)$name " )
61
- test_runners[" gpuarrays$(Base . Filesystem . path_separator)$name " ] = ()-> TestSuite. tests[name](CuArray)
61
+ push! (tests, " gpuarrays$(path_separator)$name " )
62
+ test_runners[" gpuarrays$(path_separator)$name " ] = ()-> TestSuite. tests[name](CuArray)
62
63
end
63
64
# # files in the test folder
64
65
for (rootpath, dirs, files) in walkdir (@__DIR__ )
310
311
311
312
# tests that muck with the context should not be timed with CUDA events,
312
313
# since they won't be valid at the end of the test anymore.
313
- time_source = in (test, [" core/initialization" , " base/examples" , " base/exceptions" ]) ? :julia : :cuda
314
+ time_source = in (test, [" core$(path_separator) initialization" ,
315
+ " base$(path_separator) examples" ,
316
+ " base$(path_separator) exceptions" ]) ? :julia : :cuda
314
317
315
318
# run the test
316
319
running_tests[test] = now ()
0 commit comments