Skip to content

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Jan 15, 2025
1 parent 36e64d2 commit c784f8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BSDmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."
Expand Down

0 comments on commit c784f8a

Please sign in to comment.