Skip to content

Commit 4e18e41

Browse files
authored
Remove redundant pony-doc CMake test target (#5060)
pony-lint and pony-lsp run tests exclusively via Makefile targets. pony-doc had an extra CMake test target (tools.pony-doc-tests) that was inconsistent with the other tools. Tests continue to run via the test-pony-doc Makefile target. Closes #5044
1 parent 244fbd5 commit 4e18e41

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tools/pony-doc/CMakeLists.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,3 @@ add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PONY_DOC_EXECUTABL
2424
$<TARGET_FILE:ponyc>
2525
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
2626
)
27-
28-
# Test target: compiles the test/ subdirectory with --path to access the
29-
# parent pony-doc package and the pony_compiler dependency.
30-
set(PONY_DOC_TEST_EXECUTABLE "pony-doc-tests${CMAKE_EXECUTABLE_SUFFIX}")
31-
32-
add_custom_target(tools.pony-doc-tests DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PONY_DOC_TEST_EXECUTABLE})
33-
34-
add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PONY_DOC_TEST_EXECUTABLE}
35-
COMMAND_EXPAND_LISTS
36-
COMMAND echo "Building pony-doc-tests..."
37-
COMMAND $<TARGET_FILE:ponyc> --path ${CMAKE_CURRENT_SOURCE_DIR} --path ${CMAKE_CURRENT_SOURCE_DIR}/../lib/ponylang/pony_compiler/ ${PONYC_SELFHOSTED_TOOL_PATH_ARGS} -b ${PONY_DOC_TEST_EXECUTABLE} -o ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR}/test
38-
DEPENDS
39-
${DOC_SOURCES}
40-
$<TARGET_FILE:ponyc>
41-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
42-
)

0 commit comments

Comments
 (0)