summaryrefslogtreecommitdiff
path: root/t/helper/test-tool.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-29 20:47:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-29 20:47:55 (GMT)
commit33e4ae9c509e0ecdc6508475f2974d275539616e (patch)
tree93aa27f2902d3257932d64962f724c66b7a50ef6 /t/helper/test-tool.c
parent5d3635db19c6dff4fb063fabfa4161fd3b8285f0 (diff)
parent4b4e2918099600c1eefe7b5a71bf647803905b7e (diff)
downloadgit-33e4ae9c509e0ecdc6508475f2974d275539616e.zip
git-33e4ae9c509e0ecdc6508475f2974d275539616e.tar.gz
git-33e4ae9c509e0ecdc6508475f2974d275539616e.tar.bz2
Merge branch 'bc/sha-256'
Add sha-256 hash and plug it through the code to allow building Git with the "NewHash". * bc/sha-256: hash: add an SHA-256 implementation using OpenSSL sha256: add an SHA-256 implementation using libgcrypt Add a base implementation of SHA-256 support commit-graph: convert to using the_hash_algo t/helper: add a test helper to compute hash speed sha1-file: add a constant for hash block size t: make the sha1 test-tool helper generic t: add basic tests for our SHA-1 implementation cache: make hashcmp and hasheq work with larger hashes hex: introduce functions to print arbitrary hashes sha1-file: provide functions to look up hash algorithms sha1-file: rename algorithm to "sha1"
Diffstat (limited to 't/helper/test-tool.c')
-rw-r--r--t/helper/test-tool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c
index bfb195b..5b13787 100644
--- a/t/helper/test-tool.c
+++ b/t/helper/test-tool.c
@@ -20,6 +20,7 @@ static struct test_cmd cmds[] = {
{ "example-decorate", cmd__example_decorate },
{ "genrandom", cmd__genrandom },
{ "hashmap", cmd__hashmap },
+ { "hash-speed", cmd__hash_speed },
{ "index-version", cmd__index_version },
{ "json-writer", cmd__json_writer },
{ "lazy-init-name-hash", cmd__lazy_init_name_hash },
@@ -42,6 +43,7 @@ static struct test_cmd cmds[] = {
{ "scrap-cache-tree", cmd__scrap_cache_tree },
{ "sha1", cmd__sha1 },
{ "sha1-array", cmd__sha1_array },
+ { "sha256", cmd__sha256 },
{ "sigchain", cmd__sigchain },
{ "strcmp-offset", cmd__strcmp_offset },
{ "string-list", cmd__string_list },