]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/m4/ntp_problemtests.m4
Upgrade NTP to 4.2.8p4.
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / m4 / ntp_problemtests.m4
1 dnl ######################################################################
2 dnl NTP_PROBLEM_TESTS
3 dnl
4 dnl Some platforms have problems building or running certain tests.
5 dnl While we're in the initial phase of the deployment of the test
6 dnl framework, sometimes we may need to disable these tests.
7 dnl
8 dnl This is where we do that.
9 dnl
10 AC_DEFUN([NTP_PROBLEM_TESTS], [
11 case "$build" in
12  $host) cross=0 ;;
13  *)     cross=1 ;;
14 esac
15
16 AC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
17 AC_ARG_ENABLE(
18     [problem-tests],
19     [AS_HELP_STRING(
20         [--enable-problem-tests],
21         [+ enable tests with undiagnosed problems]
22     )],
23     [ntp_ept=$enableval],
24     [ntp_ept=yes]
25 )
26 AC_MSG_RESULT([$ntp_ept])
27
28 AC_MSG_CHECKING([if we can run test-ntp_restrict])
29 ntp_test_ntp_restrict="no"
30 case "$ntp_ept:$cross:$host" in
31  no:0:*-*-solaris*) ;;
32  no:0:*-*-hpux-11.23*) ;;
33  *) ntp_test_ntp_restrict="yes" ;;
34 esac
35 AC_MSG_RESULT([$ntp_test_ntp_restrict])
36 AM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes])
37
38 AC_MSG_CHECKING([if we can run test-ntp_scanner])
39 ntp_test_ntp_scanner="no"
40 case "$ntp_ept:$cross:$host" in
41  no:0:*-*-solaris*) ;;
42  *) ntp_test_ntp_scanner="yes" ;;
43 esac
44 AC_MSG_RESULT([$ntp_test_ntp_scanner])
45 AM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes])
46
47 AC_MSG_CHECKING([if we can run test-ntp_signd])
48 ntp_test_ntp_signd="no"
49 case "$ntp_ept:$cross:$host" in
50  no:0:*-*-solaris*) ;;
51  *) ntp_test_ntp_signd="yes" ;;
52 esac
53 AC_MSG_RESULT([$ntp_test_ntp_signd])
54 AM_CONDITIONAL([BUILD_TEST_NTP_SIGND], [test x$ntp_test_ntp_signd = xyes])
55 ])
56 dnl ======================================================================