[arrayfire] 133/408: Adding the option to remove tests from ctest
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit bc2b8f5186f64495ce0e0f51ace3f56bf96cb431
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Fri Jul 10 11:41:38 2015 -0400
Adding the option to remove tests from ctest
- Files that have "manual" in their name will be removed from ctest
- They will still be built and can be run manually
---
test/CMakeLists.txt | 7 ++++++-
test/{memory_recover.cpp => manual_memory_test.cpp} | 0
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b0bdbff..339bffd 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -12,7 +12,12 @@ MACRO(CREATE_TESTS BACKEND GTEST_LIBS OTHER_LIBS)
GET_FILENAME_COMPONENT(FNAME ${FILE} NAME_WE)
SET(TEST_NAME ${FNAME}_${BACKEND})
- ADD_TEST(Test_${TEST_NAME} ${TEST_NAME})
+ IF ("${FILE}" MATCHES ".manual.")
+ MESSAGE(STATUS "Removing ${FILE} from ctest")
+ ELSE()
+ ADD_TEST(Test_${TEST_NAME} ${TEST_NAME})
+ ENDIF()
+
FILE(GLOB TEST_FILE "${FNAME}.cpp" "${FNAME}.c")
ADD_EXECUTABLE(${TEST_NAME} ${TEST_FILE})
TARGET_LINK_LIBRARIES(${TEST_NAME} PRIVATE af${BACKEND}
diff --git a/test/memory_recover.cpp b/test/manual_memory_test.cpp
similarity index 100%
rename from test/memory_recover.cpp
rename to test/manual_memory_test.cpp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list