diff --git a/BSDmakefile b/BSDmakefile index 790a7288e..01e98c597 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -43,7 +43,7 @@ BUILD_TOOLS?=OFF # 1: ERROR # 2: INFO + ERROR # 3: DEBUG + INFO + ERROR -ZENOH_DEBUG?=0 +ZENOH_DEBUG?=3 # zenoh-pico/ directory ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) diff --git a/CMakeLists.txt b/CMakeLists.txt index 889c49a2b..b94fd356d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries if ON, otherwise build static l option(WITH_ZEPHYR "Build for Zephyr RTOS" OFF) option(WITH_FREERTOS_PLUS_TCP "Build for FreeRTOS RTOS and FreeRTOS-Plus-TCP network stack" OFF) option(WITH_RPI_PICO "Build for Raspberry Pi Pico" OFF) -set(ZENOH_DEBUG 0 CACHE STRING "Use this to set the ZENOH_DEBUG variable") +set(ZENOH_DEBUG 3 CACHE STRING "Use this to set the ZENOH_DEBUG variable") set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "") if(CMAKE_EXPORT_COMPILE_COMMANDS) set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES @@ -584,6 +584,7 @@ if(UNIX OR MSVC) configure_file(${PROJECT_SOURCE_DIR}/tests/routed.sh ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/routed.sh COPYONLY) configure_file(${PROJECT_SOURCE_DIR}/tests/api.sh ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/api.sh COPYONLY) + list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure") enable_testing() # add_test(z_client_test bash ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/routed.sh z_client_test) # add_test(z_api_alignment_test bash ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/api.sh z_api_alignment_test) diff --git a/GNUmakefile b/GNUmakefile index 95942d486..3db76209a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -51,7 +51,7 @@ ASAN?=OFF # 1: ERROR # 2: INFO + ERROR # 3: DEBUG + INFO + ERROR -ZENOH_DEBUG?=0 +ZENOH_DEBUG?=3 # Feature config toggle # Accepted values: 0, 1 diff --git a/tests/api.sh b/tests/api.sh index 01f37c499..aeb2f4b8e 100644 --- a/tests/api.sh +++ b/tests/api.sh @@ -53,7 +53,7 @@ for LOCATOR in $(echo "$LOCATORS" | xargs); do sleep 5 echo "> Running $TESTBIN ..." - "$TESTBIN" "$LOCATOR" + "$TESTBIN" "$LOCATOR" 1>&2 RETCODE=$? echo "> Stopping zenohd ..."