aboutsummaryrefslogtreecommitdiff
path: root/core/testing/runner.odin
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-01 14:03:36 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-02 14:54:32 -0400
commit6a9203328bfd34c59abeb46d61f1cb5d238b24a7 (patch)
tree7de9335ae934ad1c2ca91f4dc89a0dd7913dc090 /core/testing/runner.odin
parent5db65aa796ef5dc2bfecf3a74d718e43ef5b40d0 (diff)
Log thread count at test run start
Provides a helpful info message about the option to change how many threads are used per run.
Diffstat (limited to 'core/testing/runner.odin')
-rw-r--r--core/testing/runner.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index ddc01c919..4a45dabd1 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -397,6 +397,16 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
draw_status_bar(stdout, thread_count_status_string, total_done_count, total_test_count)
}
+ when TEST_THREADS == 0 {
+ pkg_log.infof("Starting test runner with %i thread%s. Set with -define:ODIN_TEST_THREADS=n.",
+ thread_count,
+ "" if thread_count == 1 else "s")
+ } else {
+ pkg_log.infof("Starting test runner with %i thread%s.",
+ thread_count,
+ "" if thread_count == 1 else "s")
+ }
+
pkg_log.infof("The random seed sent to every test is: %v", shared_random_seed)
when TRACKING_MEMORY {