summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-21 11:27:50 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-21 11:27:50 +0100
commit0a03ddd9b31a6eef5419e20d11d50bdc99443307 (patch)
tree614cb89d8f997e03972489bcaa2aa57b5e1c9361 /crypto_aead/lilliputaei128v1
parent2df3f453fc584c9001404c3d2a74cb2059d94c0f (diff)
downloadlilliput-ae-implem-0a03ddd9b31a6eef5419e20d11d50bdc99443307.tar.xz
Ajout de la nouvelle suite de test dans le Makefile
Diffstat (limited to 'crypto_aead/lilliputaei128v1')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/Makefile b/crypto_aead/lilliputaei128v1/ref/Makefile
index 3c73db8..8379bb9 100644
--- a/crypto_aead/lilliputaei128v1/ref/Makefile
+++ b/crypto_aead/lilliputaei128v1/ref/Makefile
@@ -1,6 +1,8 @@
-tests = test-tweakey
+# TODO: should add order-only prerequisites to remove mkdirs inside recipes
-.PHONY: clean $(tests)
+tests = test-tweakey test-cipher
+
+.PHONY: clean test $(tests)
nist_flags = -std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2
@@ -12,7 +14,6 @@ clean:
results:
mkdir -p $@
-# TODO: should add order-only prerequisite to remove mkdir from this target
results/%.o: %.c
@mkdir -p $(dir $@)
gcc -c -I. $< $(nist_flags) -Werror -o $@
@@ -20,16 +21,18 @@ results/%.o: %.c
results/test-%: results/test/test-%.o
gcc $^ $(nist_flags) -Werror -o $@
+test: $(tests)
+
$(tests): %: results/%
- mkdir -p results/$@-output
+ @mkdir -p results/$@-output
./results/$@ results/$@-output
diff -ru test/$*-ref results/$@-output
results/test-tweakey: results/tweakey.o results/constants.o | results
-results/test-tweakey.o: tweakey.h
-results/tweakey.o: tweakey.h constants.h
+results/test-tweakey.o: tweakey.h parameters.h
+results/tweakey.o: tweakey.h constants.h parameters.h
results/constants.o: constants.h
-# TODO: add valgrind
+# TODO: add valgrind, although it does not seem to play well with ASAN