Re: [PATCH 2/6] unit-tests: add TEST_RUN
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Jul 13, 2024, 13:27 UTC
- Message-ID
- <954d67b1-8819-4bfc-ae10-f04beca5419a@gmail.com>
- In-Reply-To
- <xmqqa5iot01s.fsf@gitster.g>
On 11/07/2024 16:34, Junio C Hamano wrote:
Show 7 quoted lines
> Junio C Hamano <gitster@pobox.com> 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