Skip to content

Commit c563401

Browse files
committed
Add verbose mode to test runner.
[ci skip]
1 parent a95ccfb commit c563401

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if do_help
3232
3333
--help Show this text.
3434
--list List all available tests.
35+
--verbose Print more information during testing.
3536
--quickfail Fail the entire run as soon as a single test errored.
3637
--jobs=N Launch `N` processes to perform tests (default: Sys.CPU_THREADS).
3738
--gpu=0,1,... Comma-separated list of GPUs to use (default: 0)
@@ -42,6 +43,7 @@ if do_help
4243
end
4344
set_jobs, jobs = extract_flag!(ARGS, "--jobs"; typ=Int)
4445
do_sanitize, sanitize_tool = extract_flag!(ARGS, "--sanitize", "memcheck")
46+
do_verbose, _ = extract_flag!(ARGS, "--verbose")
4547
do_quickfail, _ = extract_flag!(ARGS, "--quickfail")
4648
do_gpu_list, gpu_list = extract_flag!(ARGS, "--gpu")
4749
do_list, _ = extract_flag!(ARGS, "--list")
@@ -283,7 +285,7 @@ function print_testworker_stats(test, wrkr, resp)
283285
end
284286
end
285287
global print_testworker_started = (name, wrkr)->begin
286-
if do_sanitize
288+
if do_sanitize || do_verbose
287289
lock(print_lock)
288290
try
289291
printstyled(name, color=:white)

0 commit comments

Comments
 (0)