summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-24 07:59:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-24 08:10:40 (GMT)
commitb65bc21e7d8dc8cafc70dfa6354cb66b8874b2d9 (patch)
treec8b81d0deff46063076468e15ac4964c5ba68969 /Makefile
parent86378b32895ee5d788491b8407608a54e5cf064c (diff)
downloadgit-b65bc21e7d8dc8cafc70dfa6354cb66b8874b2d9.zip
git-b65bc21e7d8dc8cafc70dfa6354cb66b8874b2d9.tar.gz
git-b65bc21e7d8dc8cafc70dfa6354cb66b8874b2d9.tar.bz2
Makefile: add framework to verify and bench sha1 implementations.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e29e3fa..ea0044d 100644
--- a/Makefile
+++ b/Makefile
@@ -636,6 +636,12 @@ test-delta$X: test-delta.c diff-delta.o patch-delta.o
test-dump-cache-tree$X: dump-cache-tree.o $(GITLIBS)
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
+test-sha1$X: test-sha1.o $(GITLIBS)
+ $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
+
+check-sha1:: test-sha1$X
+ ./test-sha1.sh
+
check:
for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; done