diff options
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-09-28 15:05:43 +0000 |
---|---|---|
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-09-28 15:05:43 +0000 |
commit | 08bc82d16278cab98a8f52780b17291f60d52f08 (patch) | |
tree | 37e60bdea1154baa25d2ed14c1327234074463a8 /cmake | |
parent | 7371e5478817ccf7db8e1eb9f2057409b2ca7049 (diff) |
[libomptarget-nvptx] Add testing infrastructure
This patch also introduces testing for libomptarget-nvptx
which has been missing until now. I propose to add tests for
all bugs that are fixed in the future.
The target check-libomptarget-nvptx is not run by default because
- we can't determine if there is a GPU plugged into the system.
- it will require the latest Clang compiler. Keeping compatibility
with older releases would prevent testing newer code generation
developed in trunk.
Differential Revision: https://reviews.llvm.org/D51687
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@343324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/OpenMPTesting.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/OpenMPTesting.cmake b/cmake/OpenMPTesting.cmake index 1514d99..fc19bf7 100644 --- a/cmake/OpenMPTesting.cmake +++ b/cmake/OpenMPTesting.cmake @@ -147,7 +147,7 @@ function(add_openmp_testsuite target comment) return() endif() - cmake_parse_arguments(ARG "" "" "DEPENDS" ${ARGN}) + cmake_parse_arguments(ARG "" "" "DEPENDS;ARGS" ${ARGN}) # EXCLUDE_FROM_ALL excludes the test ${target} out of check-openmp. if (NOT EXCLUDE_FROM_ALL) # Register the testsuites and depends for the check-openmp rule. @@ -156,8 +156,9 @@ function(add_openmp_testsuite target comment) endif() if (${OPENMP_STANDALONE_BUILD}) + set(LIT_ARGS ${OPENMP_LIT_ARGS} ${ARG_ARGS}) add_custom_target(${target} - COMMAND ${PYTHON_EXECUTABLE} ${OPENMP_LLVM_LIT_EXECUTABLE} ${OPENMP_LIT_ARGS} ${ARG_UNPARSED_ARGUMENTS} + COMMAND ${PYTHON_EXECUTABLE} ${OPENMP_LLVM_LIT_EXECUTABLE} ${LIT_ARGS} ${ARG_UNPARSED_ARGUMENTS} COMMENT ${comment} DEPENDS ${ARG_DEPENDS} ${cmake_3_2_USES_TERMINAL} @@ -167,6 +168,7 @@ function(add_openmp_testsuite target comment) ${comment} ${ARG_UNPARSED_ARGUMENTS} DEPENDS clang clang-headers FileCheck ${ARG_DEPENDS} + ARGS ${ARG_ARGS} ) endif() endfunction() |