Skip to content

Commit 35de328

Browse files
authored
disable d2cmsg unit test on arm64 for deb11 (#713)
* disable d2c_messaging ut on arm64 for Debian 11 arm64
1 parent d226c1e commit 35de328

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
cmake_minimum_required (VERSION 3.5)
22

3+
if (NOT WIN32)
4+
if (NOT DEFINED CMAKE_SYSTEM_PROCESSOR)
5+
execute_process (COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE SYS_ARCH)
6+
set (CMAKE_SYSTEM_PROCESSOR ${SYS_ARCH} CACHE STRING "System processor architecture")
7+
endif ()
8+
9+
message (STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}")
10+
11+
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64")
12+
set (IS_ARM64 TRUE)
13+
else ()
14+
set (IS_ARM64 FALSE)
15+
endif ()
16+
17+
message (STATUS "Building for ARM64: ${IS_ARM64}")
18+
endif ()
19+
320
if (WIN32)
421
#
522
# Configure vcpkg

src/utils/d2c_messaging/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ target_link_libraries (
2323
PRIVATE aduc::communication_abstraction aduc::logging aduc::retry_utils)
2424

2525
if (ADUC_BUILD_UNIT_TESTS)
26-
add_subdirectory (tests)
26+
if (${IS_ARM64})
27+
message (STATUS "Skipping tests for utils/d2c_messaging because IS_ARM64 == ${IS_ARM64}...")
28+
else ()
29+
add_subdirectory (tests)
30+
endif ()
2731
endif ()

0 commit comments

Comments
 (0)