aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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,