Changeset View
Changeset View
Standalone View
Standalone View
lldb/test/API/CMakeLists.txt
add_custom_target(lldb-api-test-deps) | add_custom_target(lldb-api-test-deps) | ||||
add_dependencies(lldb-api-test-deps lldb-test-deps) | add_dependencies(lldb-api-test-deps lldb-test-depends) | ||||
add_lit_testsuites(LLDB-API | add_lit_testsuites(LLDB-API | ||||
${CMAKE_CURRENT_SOURCE_DIR} | ${CMAKE_CURRENT_SOURCE_DIR} | ||||
DEPENDS lldb-api-test-deps) | DEPENDS lldb-api-test-deps) | ||||
function(add_python_test_target name test_script args comment) | function(add_python_test_target name test_script args comment) | ||||
set(PYTHON_TEST_COMMAND | set(PYTHON_TEST_COMMAND | ||||
${Python3_EXECUTABLE} | ${Python3_EXECUTABLE} | ||||
${test_script} | ${test_script} | ||||
${args} | ${args} | ||||
) | ) | ||||
add_custom_target(${name} | add_custom_target(${name} | ||||
COMMAND ${PYTHON_TEST_COMMAND} ${ARG_DEFAULT_ARGS} | COMMAND ${PYTHON_TEST_COMMAND} ${ARG_DEFAULT_ARGS} | ||||
COMMENT "${comment}" | COMMENT "${comment}" | ||||
USES_TERMINAL | USES_TERMINAL | ||||
) | ) | ||||
add_dependencies(${name} lldb-test-deps) | add_dependencies(${name} lldb-test-depends) | ||||
endfunction() | endfunction() | ||||
# The default architecture with which to compile test executables is the | # The default architecture with which to compile test executables is the | ||||
# default LLVM target architecture, which itself defaults to the host | # default LLVM target architecture, which itself defaults to the host | ||||
# architecture. | # architecture. | ||||
if(NOT LLDB_DEFAULT_TEST_ARCH) | if(NOT LLDB_DEFAULT_TEST_ARCH) | ||||
string(REGEX MATCH "^[^-]*" LLDB_DEFAULT_TEST_ARCH ${LLVM_HOST_TRIPLE}) | string(REGEX MATCH "^[^-]*" LLDB_DEFAULT_TEST_ARCH ${LLVM_HOST_TRIPLE}) | ||||
endif () | endif () | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |