aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-05 19:56:34 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-05 19:56:34 +0100
commitec1e67c5f49387f0d0a6202a82e23680e1d3070b (patch)
tree999bc9a0df6d0556e9b0f09bc04ca4529b4048af /Makefile
parentadd test for libkeccak_update (diff)
downloadlibkeccak-ec1e67c5f49387f0d0a6202a82e23680e1d3070b.tar.gz
libkeccak-ec1e67c5f49387f0d0a6202a82e23680e1d3070b.tar.bz2
libkeccak-ec1e67c5f49387f0d0a6202a82e23680e1d3070b.tar.xz
prepare check rule for the test reading the license file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6c13385..ba46e28 100644
--- a/Makefile
+++ b/Makefile
@@ -123,6 +123,9 @@ obj/test/%.o: src/test/%.c src/libkeccak/*.h src/libkeccak.h
.PHONY: check
check: bin/test
+ @test $$(sha256sum LICENSE | cut -d ' ' -f 1) = \
+ 57c8ff33c9c0cfc3ef00e650a1cc910d7ee479a8bc509f6c9209a7c2a11399d6 || \
+ ( echo 'The file LICENSE is incorrect, test will fail!' ; false )
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,