]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'gt/t-hash-unit-test'
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2024 20:37:15 +0000 (13:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2024 20:37:15 +0000 (13:37 -0700)
A pair of test helpers that essentially are unit tests on hash
algorithms have been rewritten using the unit-tests framework.

* gt/t-hash-unit-test:
  t/: migrate helper/test-{sha1, sha256} to unit-tests/t-hash
  strbuf: introduce strbuf_addstrings() to repeatedly add a string

1  2 
Makefile
builtin/submodule--helper.c
strbuf.c

diff --cc Makefile
index 62188f5e8f935542f17a141a3be71febb68a2663,84b4542cf3ff91e6c2470fa73f32424ee77527a7..46468b02b88ee8b595a8ba1965e3c3230c83585a
+++ b/Makefile
@@@ -1333,14 -1347,12 +1333,15 @@@ THIRD_PARTY_SOURCES += compat/regex/
  THIRD_PARTY_SOURCES += sha1collisiondetection/%
  THIRD_PARTY_SOURCES += sha1dc/%
  
 -UNIT_TEST_PROGRAMS += t-basic
 +UNIT_TEST_PROGRAMS += t-ctype
+ UNIT_TEST_PROGRAMS += t-hash
  UNIT_TEST_PROGRAMS += t-mem-pool
 -UNIT_TEST_PROGRAMS += t-strbuf
 -UNIT_TEST_PROGRAMS += t-ctype
  UNIT_TEST_PROGRAMS += t-prio-queue
 +UNIT_TEST_PROGRAMS += t-reftable-basics
 +UNIT_TEST_PROGRAMS += t-strbuf
 +UNIT_TEST_PROGRAMS += t-strcmp-offset
 +UNIT_TEST_PROGRAMS += t-strvec
 +UNIT_TEST_PROGRAMS += t-trailer
  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
Simple merge
diff --cc strbuf.c
Simple merge