+2020-07-28 Niels Möller <nisse@lysator.liu.se>
+
+ * configure.ac (FAT_TEST_LIST): New substituted variable. Set for
+ fat builds, otherwise empty.
+ * Makefile.in (check-fat): New target, using $(FAT_TEST_LIST).
+
2020-07-13 Niels Möller <nisse@lysator.liu.se>
* chacha-crypt.c (chacha_crypt) [HAVE_NATIVE_chacha_3core]: Use
OPT_NETTLE_SOURCES = @OPT_NETTLE_SOURCES@
+FAT_TEST_LIST = @FAT_TEST_LIST@
+
SUBDIRS = tools testsuite examples
include config.make
check-here:
true
+# Tries different settings of NETTLE_FAT_OVERRIDE. Note that this
+# requires that corresponding processor features are available on the
+# test machine.
+check-fat:
+ [ -z "$(FAT_TEST_LIST)" ] || \
+ set -e; cd testsuite && for f in $(FAT_TEST_LIST) ; do \
+ echo NETTLE_FAT_OVERRIDE=$$f ; \
+ NETTLE_FAT_OVERRIDE=$$f $(MAKE) check ; \
+ done
+
# FIXME: Remove. These targets aren't supported, but they are expected by the
# automake generated Makefiles in the lsh build.
dvi installcheck uninstallcheck:
fi
OPT_NETTLE_SOURCES=""
+FAT_TEST_LIST=""
# Select assembler code
asm_path=
if test "x$enable_fat" = xyes ; then
asm_path="x86_64/fat $asm_path"
OPT_NETTLE_SOURCES="fat-x86_64.c $OPT_NETTLE_SOURCES"
+ # For now, not enabling aesni or sha_ni, since at least
+ # the latter appears unavailable on te gitlab test machines.
+ FAT_TEST_LIST="vendor:intel vendor:amd"
else
if test "x$enable_x86_aesni" = xyes ; then
asm_path="x86_64/aesni $asm_path"
if test "x$enable_fat" = xyes ; then
asm_path="arm/fat $asm_path"
OPT_NETTLE_SOURCES="fat-arm.c $OPT_NETTLE_SOURCES"
+ FAT_TEST_LIST="arch:5 arch:6,neon"
else
case "$host_cpu" in
armv6* | armv7*)
AC_SUBST([OPT_NETTLE_OBJS])
AC_SUBST([OPT_HOGWEED_OBJS])
AC_SUBST([OPT_NETTLE_SOURCES])
+AC_SUBST([FAT_TEST_LIST])
AC_SUBST([ASM_RODATA])
if test "x$enable_assembler" = xyes ; then
IF_ASM=''