summaryrefslogtreecommitdiff
path: root/src/irmd/reg/tests
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-01-14 01:07:53 +0100
committerSander Vrijders <sander@ouroboros.rocks>2026-01-19 08:14:55 +0100
commit8aa6ab4d29df80adde0d512244d43d38264bf32e (patch)
tree314b0f5aad45f740d6de34d9830853fb24a4fcf0 /src/irmd/reg/tests
parent1433fa50cb4e162a0557f207a1097d165392ba8e (diff)
downloadouroboros-8aa6ab4d29df80adde0d512244d43d38264bf32e.tar.gz
ouroboros-8aa6ab4d29df80adde0d512244d43d38264bf32e.zip
build: Add option to toggle Ouroboros logging in tests
The test output is a bit polluted with logs originating fomr the logging system, e.g.: 23: test_bind_prog started. 23: ==16636== reg/name(DB): Add prog reg_test to name testname. 23: ==16636== reg(EE): Removing from names. 23: test_bind_prog succeeded. This adds a flag DISABLE_TEST_LOGGING that suppresses log_* output in tests to keep them clean: 23: test_bind_prog started. 23: test_bind_prog succeeded. The status is printed in CMake output: -- Ouroboros logging in test output disabled -- Ouroboros logging in test output enabled By default the flag is ON (clean test output). Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/reg/tests')
-rw-r--r--src/irmd/reg/tests/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irmd/reg/tests/CMakeLists.txt b/src/irmd/reg/tests/CMakeLists.txt
index eb7a1765..e33bd056 100644
--- a/src/irmd/reg/tests/CMakeLists.txt
+++ b/src/irmd/reg/tests/CMakeLists.txt
@@ -20,6 +20,8 @@ create_test_sourcelist(${src_folder}_tests test_suite.c
)
add_executable(${src_folder}_test ${${src_folder}_tests})
+
+disable_test_logging_for_target(${src_folder}_test)
target_link_libraries(${src_folder}_test ouroboros-common)
if (CMAKE_BUILD_TYPE MATCHES "Debug*")