From ec1e67c5f49387f0d0a6202a82e23680e1d3070b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Nov 2014 19:56:34 +0100 Subject: prepare check rule for the test reading the license file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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, -- cgit v1.2.3-70-g09d2