aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-05 19:44:34 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-05 19:44:34 +0100
commite6632fa082714617c2145c2981642f991d31ce77 (patch)
treecb3a647379248abceebf73d1e35379fa0b368cae /Makefile
parentm (diff)
downloadlibkeccak-e6632fa082714617c2145c2981642f991d31ce77.tar.gz
libkeccak-e6632fa082714617c2145c2981642f991d31ce77.tar.bz2
libkeccak-e6632fa082714617c2145c2981642f991d31ce77.tar.xz
add check rule to the makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 54556ea..6c13385 100644
--- a/Makefile
+++ b/Makefile
@@ -121,6 +121,14 @@ obj/test/%.o: src/test/%.c src/libkeccak/*.h src/libkeccak.h
$(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -Isrc -c -o $@ $<
+.PHONY: check
+check: bin/test
+ env LD_LIBRARY_PATH=bin valgrind --leak-check=full bin/test
+ test $$(env LD_LIBRARY_PATH=bin valgrind bin/test 2>&1 >/dev/null | wc -l) = 14
+# Using valgrind 3.10.0, its output to standard error should consist of 14 lines,
+# the test itself never prints to standard error.
+
+
.PHONY: clean
clean: