From 0dd93c793c680331e26310231d475f7f23b857a6 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 27 Feb 2020 21:39:09 +0100 Subject: [PATCH] add CMake option for ZMQ-based end-to-end tests --- CMakeLists.txt | 1 + test/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43cea2f13..73a2328c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,7 @@ option(ENABLE_ZEROMQ "Enable ZeroMQ" ON) option(ENABLE_HARDSIM "Enable support for SIM cards" ON) option(ENABLE_TTCN3 "Enable TTCN3 test binaries" OFF) +option(ENABLE_ZMQ_TEST "Enable ZMQ based E2E tests" OFF) option(BUILD_STATIC "Attempt to statically link external deps" OFF) option(RPATH "Enable RPATH" OFF) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index dd74ca349..88f4cd0c3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,8 +24,8 @@ SET(CTEST_OUTPUT_ON_FAILURE TRUE) -if (ZEROMQ_FOUND) +if (ZEROMQ_FOUND AND ENABLE_ZMQ_TEST) foreach (cell_n_prb 6 15 25 50 75 100) add_test(e2e_${cell_n_prb}prb ${CMAKE_CURRENT_SOURCE_DIR}/run_lte.sh ${CMAKE_CURRENT_BINARY_DIR}/../ ${cell_n_prb}) endforeach (cell_n_prb) -endif (ZEROMQ_FOUND) \ No newline at end of file +endif (ZEROMQ_FOUND AND ENABLE_ZMQ_TEST) \ No newline at end of file