summaryrefslogtreecommitdiffstats
path: root/demos/cipher/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'demos/cipher/Makefile')
-rw-r--r--demos/cipher/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/demos/cipher/Makefile b/demos/cipher/Makefile
index 81f526535e..df6ebeb3b6 100644
--- a/demos/cipher/Makefile
+++ b/demos/cipher/Makefile
@@ -13,7 +13,9 @@
CFLAGS = $(OPENSSL_INCS_LOCATION)
LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
-all: aesccm aesgcm aeskeywrap ariacbc
+TESTS=aesccm aesgcm aeskeywrap ariacbc
+
+all: $(TESTS)
aesccm: aesccm.o
aesgcm: aesgcm.o
@@ -25,3 +27,11 @@ aesccm aesgcm aeskeywrap ariacbc:
clean:
$(RM) aesccm aesgcm aeskeywrap ariacbc *.o
+
+.PHONY: test
+test: all
+ @echo "\nCipher tests:"
+ @set -e; for tst in $(TESTS); do \
+ echo "\n"$$tst; \
+ LD_LIBRARY_PATH=../.. ./$$tst; \
+ done