summaryrefslogtreecommitdiff
path: root/t/helper/test-tool.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-11-14 04:09:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 07:54:52 (GMT)
commit50c817e0c02a133a1615ba32971fd5f6649c894f (patch)
treeb82a6b3d3394e5d77e4d9f9a45fb6b22e0684c47 /t/helper/test-tool.h
parent9a3a0ff5374f07d60eea01bbbe9a399d1f325280 (diff)
downloadgit-50c817e0c02a133a1615ba32971fd5f6649c894f.zip
git-50c817e0c02a133a1615ba32971fd5f6649c894f.tar.gz
git-50c817e0c02a133a1615ba32971fd5f6649c894f.tar.bz2
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>
Diffstat (limited to 't/helper/test-tool.h')
-rw-r--r--t/helper/test-tool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h
index e489056..29ac7b0 100644
--- a/t/helper/test-tool.h
+++ b/t/helper/test-tool.h
@@ -50,4 +50,6 @@ int cmd__windows_named_pipe(int argc, const char **argv);
#endif
int cmd__write_cache(int argc, const char **argv);
+int cmd_hash_impl(int ac, const char **av, int algo);
+
#endif