-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplifies runtest and hopefully fixes travis
- Loading branch information
Showing
2 changed files
with
10 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
testsdir = dirname(Base.source_path()) | ||
module TestOpenCL | ||
using FactCheck | ||
|
||
for t in [:platform, :context, :device, :cmdqueue, :event, :buffer, :program, :kernel] | ||
tfile = joinpath(testsdir, "test_$t.jl") | ||
run(`julia $tfile`) | ||
# On my crappy laptop, I constantly get "out of host memory" errors | ||
# when evaling each file, use eval for faster test execution | ||
#evalfile(tfile) | ||
end | ||
@runtest OpenCL test_platform test_context test_device test_cmdqueue test_event test_buffer test_program test_kernel | ||
|
||
run(`julia $(joinpath(testsdir, "behavior_tests.jl"))`) | ||
@runtest OpenCL behavior_tests | ||
exitstatus() | ||
|
||
end # module |