From: Niels Möller Date: Fri, 31 Jul 2020 17:54:07 +0000 (+0200) Subject: New make target check-fat X-Git-Tag: nettle_3.7rc1~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fe775ee8428401d79fb9bff3cbc35cd91bfeee6;p=thirdparty%2Fnettle.git New make target check-fat --- diff --git a/ChangeLog b/ChangeLog index 0c2d365a..359f1f11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-07-28 Niels Möller + + * 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 * chacha-crypt.c (chacha_crypt) [HAVE_NATIVE_chacha_3core]: Use diff --git a/Makefile.in b/Makefile.in index 042ebe5f..c73a9e0d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -17,6 +17,8 @@ OPT_HOGWEED_OBJS = @OPT_HOGWEED_OBJS@ OPT_NETTLE_SOURCES = @OPT_NETTLE_SOURCES@ +FAT_TEST_LIST = @FAT_TEST_LIST@ + SUBDIRS = tools testsuite examples include config.make @@ -55,6 +57,16 @@ clean distclean mostlyclean maintainer-clean tags: 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: diff --git a/configure.ac b/configure.ac index f6d5fdd8..d8b7b072 100644 --- a/configure.ac +++ b/configure.ac @@ -383,6 +383,7 @@ if test "x$ABI" != xstandard ; then fi OPT_NETTLE_SOURCES="" +FAT_TEST_LIST="" # Select assembler code asm_path= @@ -397,6 +398,9 @@ if test "x$enable_assembler" = xyes ; then 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" @@ -421,6 +425,7 @@ if test "x$enable_assembler" = xyes ; then 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*) @@ -547,6 +552,7 @@ fi 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=''