From: Junio C Hamano Date: Thu, 19 Sep 2024 01:02:05 +0000 (-0700) Subject: Merge branch 'ps/clar-unit-test' X-Git-Tag: v2.47.0-rc0~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d55832f5cf914d583881cdb6f7b76b1793e2b16;p=thirdparty%2Fgit.git Merge branch 'ps/clar-unit-test' Import clar unit tests framework libgit2 folks invented for our use. * ps/clar-unit-test: Makefile: rename clar-related variables to avoid confusion clar: add CMake support t/unit-tests: convert ctype tests to use clar t/unit-tests: convert strvec tests to use clar t/unit-tests: implement test driver Makefile: wire up the clar unit testing framework Makefile: do not use sparse on third-party sources Makefile: make hdr-check depend on generated headers Makefile: fix sparse dependency on GENERATED_H clar: stop including `shellapi.h` unnecessarily clar(win32): avoid compile error due to unused `fs_copy()` clar: avoid compile error with mingw-w64 t/clar: fix compatibility with NonStop t: import the clar unit testing framework t: do not pass GIT_TEST_OPTS to unit tests with prove --- 5d55832f5cf914d583881cdb6f7b76b1793e2b16 diff --cc Makefile index 275a5ee3c9,4ef1f1dfe3..9cf2be070f --- a/Makefile +++ b/Makefile @@@ -1352,9 -1357,7 +1362,8 @@@ UNIT_TEST_PROGRAMS += t-reftable-stac UNIT_TEST_PROGRAMS += t-reftable-tree UNIT_TEST_PROGRAMS += t-strbuf UNIT_TEST_PROGRAMS += t-strcmp-offset - UNIT_TEST_PROGRAMS += t-strvec UNIT_TEST_PROGRAMS += t-trailer +UNIT_TEST_PROGRAMS += t-urlmatch-normalization UNIT_TEST_PROGS = $(patsubst %,$(UNIT_TEST_BIN)/%$X,$(UNIT_TEST_PROGRAMS)) UNIT_TEST_OBJS = $(patsubst %,$(UNIT_TEST_DIR)/%.o,$(UNIT_TEST_PROGRAMS)) UNIT_TEST_OBJS += $(UNIT_TEST_DIR)/test-lib.o