Index: test/CMakeLists.txt =================================================================== --- test/CMakeLists.txt +++ test/CMakeLists.txt @@ -129,6 +129,21 @@ "Testing LLDB (parallel execution, with a separate subprocess per test)" ) +# Generate a wrapper for dotest.py in the bin directory. +string (REPLACE ";" " " LLDB_DOTEST_ARGS_STR "${LLDB_DOTEST_ARGS}") +# We need this to substitute variables. +configure_file( + dotest.in + ${CMAKE_CURRENT_BINARY_DIR}/dotest.configured + ) +# We need this to expand the generator expressions. +file(GENERATE + OUTPUT + $/dotest + INPUT + ${CMAKE_CURRENT_BINARY_DIR}/dotest.configured + ) + # If we're building with an in-tree clang, then list clang as a dependency # to run tests. if (TARGET clang) Index: test/dotest.in =================================================================== --- /dev/null +++ test/dotest.in @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +@LLDB_SOURCE_DIR@/test/dotest.py -q @LLDB_DOTEST_ARGS_STR@ $@