xref: /freebsd/contrib/ntp/sntp/m4/ntp_problemtests.m4 (revision 2d4e511ca269f1908d27f4e5779c53475527391d)
19034852cSGleb Smirnoffdnl ######################################################################
29034852cSGleb Smirnoffdnl NTP_PROBLEM_TESTS
39034852cSGleb Smirnoffdnl
49034852cSGleb Smirnoffdnl Some platforms have problems building or running certain tests.
59034852cSGleb Smirnoffdnl While we're in the initial phase of the deployment of the test
69034852cSGleb Smirnoffdnl framework, sometimes we may need to disable these tests.
79034852cSGleb Smirnoffdnl
89034852cSGleb Smirnoffdnl This is where we do that.
99034852cSGleb Smirnoffdnl
109034852cSGleb SmirnoffAC_DEFUN([NTP_PROBLEM_TESTS], [
119034852cSGleb Smirnoffcase "$build" in
129034852cSGleb Smirnoff $host)	cross=0 ;;
139034852cSGleb Smirnoff *)	cross=1 ;;
149034852cSGleb Smirnoffesac
159034852cSGleb Smirnoff
169034852cSGleb SmirnoffAC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
179034852cSGleb SmirnoffAC_ARG_ENABLE(
189034852cSGleb Smirnoff    [problem-tests],
199034852cSGleb Smirnoff    [AS_HELP_STRING(
209034852cSGleb Smirnoff        [--enable-problem-tests],
219034852cSGleb Smirnoff        [+ enable tests with undiagnosed problems]
229034852cSGleb Smirnoff    )],
239034852cSGleb Smirnoff    [ntp_ept=$enableval],
249034852cSGleb Smirnoff    [ntp_ept=yes]
259034852cSGleb Smirnoff)
269034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_ept])
279034852cSGleb Smirnoff
289034852cSGleb SmirnoffAC_MSG_CHECKING([if we can run test-ntp_restrict])
299034852cSGleb Smirnoffntp_test_ntp_restrict="no"
309034852cSGleb Smirnoffcase "$ntp_ept:$cross:$host" in
313311ff84SXin LI no:0:*-*-freebsd6.4) ;;
323311ff84SXin LI no:0:*-*-hpux11.23*) ;;
339034852cSGleb Smirnoff no:0:*-*-solaris*) ;;
349034852cSGleb Smirnoff *) ntp_test_ntp_restrict="yes" ;;
359034852cSGleb Smirnoffesac
36*2d4e511cSCy Schubertcase "$ntp_cv_gc_sections_runs" in
37*2d4e511cSCy Schubert  no) ntp_test_ntp_restrict="no" ;;
38*2d4e511cSCy Schubert  * ) ;;
39*2d4e511cSCy Schubertesac
409034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_test_ntp_restrict])
419034852cSGleb SmirnoffAM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes])
429034852cSGleb Smirnoff
439034852cSGleb SmirnoffAC_MSG_CHECKING([if we can run test-ntp_scanner])
449034852cSGleb Smirnoffntp_test_ntp_scanner="no"
459034852cSGleb Smirnoffcase "$ntp_ept:$cross:$host" in
463311ff84SXin LI no:0:*-*-freebsd6.4) ;;
479034852cSGleb Smirnoff no:0:*-*-solaris*) ;;
489034852cSGleb Smirnoff *) ntp_test_ntp_scanner="yes" ;;
499034852cSGleb Smirnoffesac
50*2d4e511cSCy Schubertcase "$ntp_cv_gc_sections_runs" in
51*2d4e511cSCy Schubert  no) ntp_test_ntp_scanner="no" ;;
52*2d4e511cSCy Schubert  * ) ;;
53*2d4e511cSCy Schubertesac
549034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_test_ntp_scanner])
559034852cSGleb SmirnoffAM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes])
569034852cSGleb Smirnoff
579034852cSGleb SmirnoffAC_MSG_CHECKING([if we can run test-ntp_signd])
589034852cSGleb Smirnoffntp_test_ntp_signd="no"
599034852cSGleb Smirnoffcase "$ntp_ept:$cross:$host" in
603311ff84SXin LI no:0:*-*-freebsd6.4) ;;
619034852cSGleb Smirnoff no:0:*-*-solaris*) ;;
629034852cSGleb Smirnoff *) ntp_test_ntp_signd="yes" ;;
639034852cSGleb Smirnoffesac
64*2d4e511cSCy Schubertcase "$ntp_cv_gc_sections_runs" in
65*2d4e511cSCy Schubert  no) ntp_test_ntp_signd="no" ;;
66*2d4e511cSCy Schubert  * ) ;;
67*2d4e511cSCy Schubertesac
689034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_test_ntp_signd])
699034852cSGleb SmirnoffAM_CONDITIONAL([BUILD_TEST_NTP_SIGND], [test x$ntp_test_ntp_signd = xyes])
70e27abb66SXin LI
719034852cSGleb Smirnoff])
729034852cSGleb Smirnoffdnl ======================================================================
73