lalapps/lalapps-disable-testWeave-for-non-x86_64.patch
2023-05-26 09:09:26 +00:00

19 lines
802 B
Diff

Index: lalapps-9.2.1/configure.ac
===================================================================
--- lalapps-9.2.1.orig/configure.ac
+++ lalapps-9.2.1/configure.ac
@@ -268,6 +268,13 @@ AM_CPPFLAGS="-I\$(top_srcdir)/src ${AM_C
# RedHat-derived systems.
AC_SUBST([pkgpythondir], ["\${pkgpyexecdir}"])
+# testWeave_* results have tolerance issues that show up in some archs, use only for x86_64
+# See https://git.ligo.org/lscsoft/lalsuite/-/issues/105
+AC_MSG_CHECKING([if arch is non-x86_64 so weave tests should be disabled])
+AC_DEFINE([SKIP_WEAVE_TESTS], [0], [Set to 1 for non-x86_64 architectures])
+AS_IF([test x"$(arch)" != "xx86_64"], AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]))
+AM_CONDITIONAL([SKIP_WEAVE_TESTS], [test x"$(arch)" != "xx86_64"])
+
# output
AC_OUTPUT
AC_MSG_NOTICE([