Re: [PATCH 2/2] t/Makefile: get UNIT_TESTS list from C sources
From: Jeff King <hidden>
Date: 2024-01-30 05:25:13
From: Jeff King <hidden>
Date: 2024-01-30 05:25:13
On Mon, Jan 29, 2024 at 04:27:59PM -0800, Junio C Hamano wrote:
quoted
As a result, I'm not surprised this worked without handling $X, but I don't think there's any harm in adding it either.OK. I wonder if something like this is sufficient? [...]
Yeah, that matches the patch I came up with locally. I'll roll that into v2.
I am not sure if we should lift the building of t/unit-tests/* up to the primary Makefile to mimic the way stuff related to test-tool are built and linked. That way, we do not have to contaminate t/Makefile with compilation related stuff that we didn't need originally.
I didn't quite understand this comment, though. The building of t/unit-tests _is_ in the top-level Makefile. It's just here in the recursive Makefile that we need to have the list of built programs. -Peff