git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] cmake: let `test-tool` run the unit tests, too

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 15, 2024, 23:45 UTC
Message-ID
<xmqq5xypmgup.fsf@gitster.g>
In-Reply-To
<pull.1666.git.1708038924522.gitgitgadget@gmail.com>

"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:

Show 5 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> The `test-tool` recently learned to run the unit tests. To this end, it
> needs to link with `test-lib.c`, which was done in the `Makefile`, and
> this patch does it in the CMake definition, too.
Nice.  Will queue.  Thanks.
Show 6 quoted lines
> +add_library(test-lib OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/test-lib.c)
>  
>  list(TRANSFORM test-tool_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/t/helper/")
>  add_executable(test-tool ${CMAKE_SOURCE_DIR}/t/helper/test-tool.c ${test-tool_SOURCES} ${test-reftable_SOURCES})
> -target_link_libraries(test-tool common-main)
> +target_link_libraries(test-tool test-lib common-main)
Previous: Johannes Schindelin via GitGitGadget
Message 2 of 2 in “cmake: let `test-tool` run the unit tests, too”
  1. cmake: let `test-tool` run the unit tests, tooJohannes Schindelin via GitGitGadget, Feb 15, 2024
  2. Junio C HamanoFeb 15, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.