xref: /freebsd/contrib/ntp/sntp/m4/ntp_problemtests.m4 (revision 9034852c84a13f0e3b5527e1c886ca94b2863b2b)
1*9034852cSGleb Smirnoffdnl ######################################################################
2*9034852cSGleb Smirnoffdnl NTP_PROBLEM_TESTS
3*9034852cSGleb Smirnoffdnl
4*9034852cSGleb Smirnoffdnl Some platforms have problems building or running certain tests.
5*9034852cSGleb Smirnoffdnl While we're in the initial phase of the deployment of the test
6*9034852cSGleb Smirnoffdnl framework, sometimes we may need to disable these tests.
7*9034852cSGleb Smirnoffdnl
8*9034852cSGleb Smirnoffdnl This is where we do that.
9*9034852cSGleb Smirnoffdnl
10*9034852cSGleb SmirnoffAC_DEFUN([NTP_PROBLEM_TESTS], [
11*9034852cSGleb Smirnoffcase "$build" in
12*9034852cSGleb Smirnoff $host)	cross=0 ;;
13*9034852cSGleb Smirnoff *)	cross=1 ;;
14*9034852cSGleb Smirnoffesac
15*9034852cSGleb Smirnoff
16*9034852cSGleb SmirnoffAC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
17*9034852cSGleb SmirnoffAC_ARG_ENABLE(
18*9034852cSGleb Smirnoff    [problem-tests],
19*9034852cSGleb Smirnoff    [AS_HELP_STRING(
20*9034852cSGleb Smirnoff        [--enable-problem-tests],
21*9034852cSGleb Smirnoff        [+ enable tests with undiagnosed problems]
22*9034852cSGleb Smirnoff    )],
23*9034852cSGleb Smirnoff    [ntp_ept=$enableval],
24*9034852cSGleb Smirnoff    [ntp_ept=yes]
25*9034852cSGleb Smirnoff)
26*9034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_ept])
27*9034852cSGleb Smirnoff
28*9034852cSGleb SmirnoffAC_MSG_CHECKING([if we can run test-ntp_restrict])
29*9034852cSGleb Smirnoffntp_test_ntp_restrict="no"
30*9034852cSGleb Smirnoffcase "$ntp_ept:$cross:$host" in
31*9034852cSGleb Smirnoff no:0:*-*-solaris*) ;;
32*9034852cSGleb Smirnoff no:0:*-*-hpux-11.23*) ;;
33*9034852cSGleb Smirnoff *) ntp_test_ntp_restrict="yes" ;;
34*9034852cSGleb Smirnoffesac
35*9034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_test_ntp_restrict])
36*9034852cSGleb SmirnoffAM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes])
37*9034852cSGleb Smirnoff
38*9034852cSGleb SmirnoffAC_MSG_CHECKING([if we can run test-ntp_scanner])
39*9034852cSGleb Smirnoffntp_test_ntp_scanner="no"
40*9034852cSGleb Smirnoffcase "$ntp_ept:$cross:$host" in
41*9034852cSGleb Smirnoff no:0:*-*-solaris*) ;;
42*9034852cSGleb Smirnoff *) ntp_test_ntp_scanner="yes" ;;
43*9034852cSGleb Smirnoffesac
44*9034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_test_ntp_scanner])
45*9034852cSGleb SmirnoffAM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes])
46*9034852cSGleb Smirnoff
47*9034852cSGleb SmirnoffAC_MSG_CHECKING([if we can run test-ntp_signd])
48*9034852cSGleb Smirnoffntp_test_ntp_signd="no"
49*9034852cSGleb Smirnoffcase "$ntp_ept:$cross:$host" in
50*9034852cSGleb Smirnoff no:0:*-*-solaris*) ;;
51*9034852cSGleb Smirnoff *) ntp_test_ntp_signd="yes" ;;
52*9034852cSGleb Smirnoffesac
53*9034852cSGleb SmirnoffAC_MSG_RESULT([$ntp_test_ntp_signd])
54*9034852cSGleb SmirnoffAM_CONDITIONAL([BUILD_TEST_NTP_SIGND], [test x$ntp_test_ntp_signd = xyes])
55*9034852cSGleb Smirnoff])
56*9034852cSGleb Smirnoffdnl ======================================================================
57