]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
t: make the sha1 test-tool helper generic
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 14 Nov 2018 04:09:32 +0000 (04:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Nov 2018 07:54:52 +0000 (16:54 +0900)
commit50c817e0c02a133a1615ba32971fd5f6649c894f
treeb82a6b3d3394e5d77e4d9f9a45fb6b22e0684c47
parent9a3a0ff5374f07d60eea01bbbe9a399d1f325280
t: make the sha1 test-tool helper generic

Since we're going to have multiple hash algorithms to test, it makes
sense to share as much of the test code as possible.  Convert the sha1
helper for the test-tool to be generic and move it out into its own
module.  This will allow us to share most of this code with our NewHash
implementation.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/helper/test-hash.c [new file with mode: 0644]
t/helper/test-sha1.c
t/helper/test-tool.h