From 7778752da0d1471e3fb4890ba488a628f6a9282e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Sat, 18 May 2019 15:01:37 +0200 Subject: [PATCH] disable lldb tests on debian due to an bug in python --- tests/CMakeLists.txt | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 47251fc..cba50ea 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -168,12 +168,21 @@ add_executable(usages_clang_test usages_clang_test.cc $) -# target_link_libraries(lldb_test juci_shared ${PYTHON_LIBRARIES}) -# add_test(lldb_test lldb_test) -# add_subdirectory("lldb_test_files") -# endif() +set(debian_version_file /etc/debian_version) +if(EXISTS ${debian_version_file}) + file(READ ${debian_version_file} debian_version) + message(${debian_version}) + if(${debian_version} EQUAL 9.9) + set(DEBIAN_STRETCH_FOUND True) + endif() +endif() + +if(LIBLLDB_FOUND AND NOT DEBIAN_STRETCH_FOUND) + add_executable(lldb_test lldb_test.cc $) + target_link_libraries(lldb_test juci_shared ${PYTHON_LIBRARIES}) + add_test(lldb_test lldb_test) + add_subdirectory("lldb_test_files") +endif() add_executable(git_test git_test.cc $) target_link_libraries(git_test juci_shared ${PYTHON_LIBRARIES})