From: Phillip Wood Date: Sat, 13 Jul 2024 13:27:08 GMT Subject: Re: [PATCH 2/6] unit-tests: add TEST_RUN Message-ID: <954d67b1-8819-4bfc-ae10-f04beca5419a@gmail.com> In-Reply-To: On 11/07/2024 16:34, Junio C Hamano wrote: > Junio C Hamano writes: > > So, perhaps test_if_XXXXXX() but it is not quite clear to me when > TEST_RUN() wants to return true, so I cannot come up with an > appropriate value to fill the XXXXXX part. If this is about > honoring GIT_SKIP_TESTS or something similar, then I may suggest > test_if_enabled(), but that does not seem like it. So... TEST_RUN() returns true if the test has not been skipped i.e. the test should be run. At the moment the only way to skip a test is to call test_skip_all() in a previous test. In the future I expect we'll add something like the "--run" option we have for the integration tests. Best Wishes Phillip