|
| 1 | +add_custom_target(lldb-api-test-deps) |
| 2 | +add_dependencies(lldb-api-test-deps lldb-test-deps) |
| 3 | + |
| 4 | +add_lit_testsuites(LLDB-API |
| 5 | + ${CMAKE_CURRENT_SOURCE_DIR} |
| 6 | + DEPENDS lldb-api-test-deps) |
| 7 | + |
1 | 8 | function(add_python_test_target name test_script args comment)
|
2 | 9 | set(PYTHON_TEST_COMMAND
|
3 | 10 | ${Python3_EXECUTABLE}
|
@@ -153,39 +160,35 @@ string(REPLACE ${CMAKE_CFG_INTDIR} ${dotest_args_replacement} LLDB_TEST_EXECUTAB
|
153 | 160 | string(REPLACE ${CMAKE_CFG_INTDIR} ${dotest_args_replacement} LLDB_TEST_COMPILER "${LLDB_TEST_COMPILER}")
|
154 | 161 | string(REPLACE ${CMAKE_CFG_INTDIR} ${dotest_args_replacement} LLDB_TEST_DSYMUTIL "${LLDB_TEST_DSYMUTIL}")
|
155 | 162 |
|
156 |
| -# Configure the API test suite. |
157 | 163 | configure_lit_site_cfg(
|
158 | 164 | ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
159 | 165 | ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
|
160 | 166 | MAIN_CONFIG
|
161 | 167 | ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py)
|
162 | 168 |
|
163 |
| -if (CMAKE_GENERATOR STREQUAL "Xcode") |
164 |
| - # Xcode does not get the auto-generated targets. We need to create |
165 |
| - # check-lldb-api manually. |
166 |
| - add_lit_testsuite(check-lldb-api "Running lldb api test suite" |
167 |
| - ${CMAKE_CURRENT_BINARY_DIR} |
168 |
| - DEPENDS lldb-test-deps) |
169 |
| -endif() |
170 |
| - |
171 | 169 | # Targets for running the test suite on the different Apple simulators.
|
172 | 170 | add_lit_testsuite(check-lldb-simulator-ios
|
173 | 171 | "Running lldb test suite on the iOS simulator"
|
174 | 172 | ${CMAKE_CURRENT_BINARY_DIR}
|
175 | 173 | PARAMS "lldb-run-with-simulator=ios"
|
176 | 174 | EXCLUDE_FROM_CHECK_ALL
|
177 |
| - DEPENDS lldb-test-deps) |
| 175 | + DEPENDS lldb-api-test-deps) |
178 | 176 |
|
179 | 177 | add_lit_testsuite(check-lldb-simulator-watchos
|
180 | 178 | "Running lldb test suite on the watchOS simulator"
|
181 | 179 | ${CMAKE_CURRENT_BINARY_DIR}
|
182 | 180 | PARAMS "lldb-run-with-simulator=watchos"
|
183 | 181 | EXCLUDE_FROM_CHECK_ALL
|
184 |
| - DEPENDS lldb-test-deps) |
| 182 | + DEPENDS lldb-api-test-deps) |
185 | 183 |
|
186 | 184 | add_lit_testsuite(check-lldb-simulator-tvos
|
187 | 185 | "Running lldb test suite on the tvOS simulator"
|
188 | 186 | ${CMAKE_CURRENT_BINARY_DIR}
|
189 | 187 | PARAMS "lldb-run-with-simulator=tvos"
|
190 | 188 | EXCLUDE_FROM_CHECK_ALL
|
191 |
| - DEPENDS lldb-test-deps) |
| 189 | + DEPENDS lldb-api-test-deps) |
| 190 | + |
| 191 | +add_lit_testsuite(check-lldb-api "Running lldb api test suite" |
| 192 | + ${CMAKE_CURRENT_BINARY_DIR} |
| 193 | + EXCLUDE_FROM_CHECK_ALL |
| 194 | + DEPENDS lldb-api-test-deps) |
0 commit comments