Skip to content

Commit

Permalink
Add verbose mode to test runner.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
maleadt committed Oct 28, 2024
1 parent a95ccfb commit c563401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if do_help
--help Show this text.
--list List all available tests.
--verbose Print more information during testing.
--quickfail Fail the entire run as soon as a single test errored.
--jobs=N Launch `N` processes to perform tests (default: Sys.CPU_THREADS).
--gpu=0,1,... Comma-separated list of GPUs to use (default: 0)
Expand All @@ -42,6 +43,7 @@ if do_help
end
set_jobs, jobs = extract_flag!(ARGS, "--jobs"; typ=Int)
do_sanitize, sanitize_tool = extract_flag!(ARGS, "--sanitize", "memcheck")
do_verbose, _ = extract_flag!(ARGS, "--verbose")
do_quickfail, _ = extract_flag!(ARGS, "--quickfail")
do_gpu_list, gpu_list = extract_flag!(ARGS, "--gpu")
do_list, _ = extract_flag!(ARGS, "--list")
Expand Down Expand Up @@ -283,7 +285,7 @@ function print_testworker_stats(test, wrkr, resp)
end
end
global print_testworker_started = (name, wrkr)->begin
if do_sanitize
if do_sanitize || do_verbose
lock(print_lock)
try
printstyled(name, color=:white)
Expand Down

0 comments on commit c563401

Please sign in to comment.