From 32a4053b72e0337a907b80a5dba4797e9620d30a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 16 Jun 2020 02:36:41 +0200 Subject: [PATCH] cmake: fix execution of tests --- tests/integration/CMakeLists.txt | 13 +++++++------ tests/unit/CMakeLists.txt | 9 +++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/integration/CMakeLists.txt b/tests/integration/CMakeLists.txt index e06335a4f..a799d5713 100644 --- a/tests/integration/CMakeLists.txt +++ b/tests/integration/CMakeLists.txt @@ -22,12 +22,13 @@ add_custom_target(run-integration-tests COMMAND - SRCDIR=${PROJECT_SOURCE_DIR} - BUILDDIR=${PROJECT_BINARY_DIR} - LD_PRELOAD=/usr/lib64/libSegFault.so - SEGFAULT_SIGNALS=all - SEGFAULT_SIGNALS="bus abrt" - ${PROJECT_SOURCE_DIR}/tools/integration-tests.sh 2>&1 | c++filt + /bin/bash -o pipefail -c \" + SRCDIR=${PROJECT_SOURCE_DIR} + BUILDDIR=${PROJECT_BINARY_DIR} + LD_PRELOAD=/usr/lib64/libSegFault.so + SEGFAULT_SIGNALS=all + SEGFAULT_SIGNALS='bus abrt' + ${PROJECT_SOURCE_DIR}/tools/integration-tests.sh 2>&1 | c++filt\" USES_TERMINAL DEPENDS villas-node diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index e0efa2519..5c4702c6a 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -43,10 +43,11 @@ target_link_libraries(unit-tests PUBLIC add_custom_target(run-unit-tests COMMAND - LD_PRELOAD=/usr/lib64/libSegFault.so - SEGFAULT_SIGNALS=all - SEGFAULT_SIGNALS="bus abrt" - $ + /bin/bash -o pipefail -c \" + LD_PRELOAD=/usr/lib64/libSegFault.so + SEGFAULT_SIGNALS=all + SEGFAULT_SIGNALS="bus abrt" + $ 2>&1 | c++filt\" DEPENDS unit-tests USES_TERMINAL