From fa5780e91c3058dbbb6007a55d2ab625f893434a Mon Sep 17 00:00:00 2001 From: Harlan Stenn Date: Wed, 30 Sep 2015 06:45:59 +0000 Subject: [PATCH] Implement --disable-problem-tests (off by default). Harlan Stenn. bk: 560b8527zgf8XPuPjrItpJKEufgkAw --- ChangeLog | 1 + sntp/m4/ntp_problemtests.m4 | 26 ++++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f4c4e268..d15d40498 100644 --- a/ChangeLog +++ b/ChangeLog @@ -123,6 +123,7 @@ fixed formatting. Tomasz Flendrich * gcc on older HPUX may need +allowdups. Harlan Stenn. * Adding missing MCAST protection. Harlan Stenn. * Disable certain test programs on certain platforms. Harlan Stenn. +* Implement --disable-problem-tests (off by default). Harlan Stenn. --- (4.2.8p3) 2015/06/29 Released by Harlan Stenn diff --git a/sntp/m4/ntp_problemtests.m4 b/sntp/m4/ntp_problemtests.m4 index b1f52d35f..732e64add 100644 --- a/sntp/m4/ntp_problemtests.m4 +++ b/sntp/m4/ntp_problemtests.m4 @@ -12,10 +12,24 @@ case "$build" in $host) cross=0 ;; *) cross=1 ;; esac + +AC_MSG_CHECKING([if we want to disable tests with undiagnosed problems]) +AC_ARG_ENABLE( + [all-tests], + [AS_HELP_STRING( + [--disable-problem-tests], + [- disable tests with undiagnosed problems] + )], + [ntp_eat=$enableval], + [ntp_eat=no] +) +AC_MSG_RESULT([$ntp_eat]) + AC_MSG_CHECKING([if we can run test-ntp_restrict]) ntp_test_ntp_restrict="no" -case "$cross:$host" in - 0:*-*-solaris*) ;; +case "$ntp_eat:$cross:$host" in + 0:0:*-*-solaris*) ;; + 0:0:*-*-hpux-11.23*) ;; *) ntp_test_ntp_restrict="yes" ;; esac AC_MSG_RESULT([$ntp_test_ntp_restrict]) @@ -23,8 +37,8 @@ AM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes]) AC_MSG_CHECKING([if we can run test-ntp_scanner]) ntp_test_ntp_scanner="no" -case "$cross:$host" in - 0:*-*-solaris*) ;; +case "$ntp_eat:$cross:$host" in + 0:0:*-*-solaris*) ;; *) ntp_test_ntp_scanner="yes" ;; esac AC_MSG_RESULT([$ntp_test_ntp_scanner]) @@ -32,8 +46,8 @@ AM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes]) AC_MSG_CHECKING([if we can run test-ntp_signd]) ntp_test_ntp_signd="no" -case "$cross:$host" in - 0:*-*-solaris*) ;; +case "$ntp_eat:$cross:$host" in + 0:0:*-*-solaris*) ;; *) ntp_test_ntp_signd="yes" ;; esac AC_MSG_RESULT([$ntp_test_ntp_signd]) -- 2.47.3