summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/check-implementation.sh2
-rw-r--r--test/common.mk9
2 files changed, 9 insertions, 2 deletions
diff --git a/test/check-implementation.sh b/test/check-implementation.sh
index 4113637..0750d1b 100755
--- a/test/check-implementation.sh
+++ b/test/check-implementation.sh
@@ -46,7 +46,7 @@ run-genkat ()
local nist_flags=(-std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2)
- gcc ${nist_flags[@]} -Werror -I${genkat_dir} ${genkat_dir}/*.c -o ${genkat}
+ gcc ${nist_flags[@]} -I${genkat_dir} ${genkat_dir}/*.c -o ${genkat}
${genkat}
mv LWC_AEAD_KAT*.txt ${vectors_dir}/${mode}-${keylen}
diff --git a/test/common.mk b/test/common.mk
index 677dcbe..c978c2d 100644
--- a/test/common.mk
+++ b/test/common.mk
@@ -11,9 +11,16 @@ endif
IMPLEMENTATION = ref
+ifeq "$(IMPLEMENTATION)" "add_threshold"
+# Filter out tests on tweakey schedule, as the thresholded API differs.
+tests = $(filter-out test-tweakey,$(basename $(wildcard test-*.c)))
+# Don't trigger warnings for "a&b ^ c".
+CFLAGS += -Wno-parentheses
+else
tests = $(basename $(wildcard test-*.c))
-traces = $(basename $(wildcard traces-*.c))
+endif
+traces = $(basename $(wildcard traces-*.c))
test_dir = $(dir $(lastword $(MAKEFILE_LIST)))
root_dir = $(test_dir)..