From 976c811dcbdfb4dda52551300a233bfdbc6b8ba3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 5 Jul 2013 11:55:10 +0200 Subject: add check --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 6cd8d1e..d507b28 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ # nthash - Generate NT Hash CC := gcc +ECHO := echo +GREP := grep CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs nettle) VERSION = $(shell git describe --tags --long) @@ -8,5 +10,9 @@ VERSION = $(shell git describe --tags --long) all: nthash.c $(CC) $(CFLAGS) -o nthash nthash.c +check: + $(ECHO) -n "testing123" | ./nthash | \ + $(GREP) '^3e 67 8b 26 6d 1d 44 9e 53 1e 92 be c3 3b 6d 27$$' + clean: /bin/rm -f *.o *~ nthash -- cgit v1.2.3-70-g09d2