diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-05 19:44:34 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-05 19:44:34 +0100 |
commit | e6632fa082714617c2145c2981642f991d31ce77 (patch) | |
tree | cb3a647379248abceebf73d1e35379fa0b368cae | |
parent | m (diff) | |
download | libkeccak-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>
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: |