diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-05 11:55:10 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-05 11:55:10 +0200 |
commit | 976c811dcbdfb4dda52551300a233bfdbc6b8ba3 (patch) | |
tree | 8c5b1e27eb4f4ebff59a7a6e61c54841d09e037b /Makefile | |
parent | c183aed2e6a98abedc28acc7e10c7aa0c90ab6cd (diff) | |
download | nthash-976c811dcbdfb4dda52551300a233bfdbc6b8ba3.tar.gz nthash-976c811dcbdfb4dda52551300a233bfdbc6b8ba3.tar.zst |
add check
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |