From 03a104174abd44a7b526e6da5cebb9fd671beb18 Mon Sep 17 00:00:00 2001 From: maximusron Date: Mon, 6 May 2024 11:06:28 +0200 Subject: [PATCH] Split CUDA tests into seperate executable --- unittests/CppInterOp/CMakeLists.txt | 11 ++++++----- unittests/CppInterOp/FunctionReflectionTest.cpp | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/unittests/CppInterOp/CMakeLists.txt b/unittests/CppInterOp/CMakeLists.txt index 7f6252952..04d8865a1 100644 --- a/unittests/CppInterOp/CMakeLists.txt +++ b/unittests/CppInterOp/CMakeLists.txt @@ -6,10 +6,7 @@ option(TEST_INTEROP_CUDA "Enables the CUDA Tests" ON) if (TEST_INTEROP_CUDA) add_definitions(-DTEST_INTEROP_CUDA) -endif() - -if(TEST_INTEROP_CUDA) - add_cppinterop_unittest(CppInterOpTests CUDATest.cpp) + add_cppinterop_unittest(CppInterOpCUDATests CUDATest.cpp) endif() add_cppinterop_unittest(CppInterOpTests @@ -24,6 +21,7 @@ add_cppinterop_unittest(CppInterOpTests ) target_link_libraries(CppInterOpTests + CppInterOpCUDATests PRIVATE clangCppInterOp ) @@ -31,7 +29,10 @@ target_link_libraries(CppInterOpTests set_source_files_properties(InterpreterTest.cpp PROPERTIES COMPILE_DEFINITIONS "LLVM_BINARY_DIR=\"${LLVM_BINARY_DIR}\"" ) -export_executable_symbols(CppInterOpTests) + +export_executable_symbols(CppInterOpTests + CppInterOpCUDATests + ) unset(LLVM_LINK_COMPONENTS) diff --git a/unittests/CppInterOp/FunctionReflectionTest.cpp b/unittests/CppInterOp/FunctionReflectionTest.cpp index c9832efa4..123760d53 100644 --- a/unittests/CppInterOp/FunctionReflectionTest.cpp +++ b/unittests/CppInterOp/FunctionReflectionTest.cpp @@ -1006,6 +1006,7 @@ TEST(FunctionReflectionTest, GetFunctionArgDefault) { } TEST(FunctionReflectionTest, Construct) { + GTEST_SKIP() << "XFAIL due to Valgrind report"; Cpp::CreateInterpreter(); Interp->declare(R"(