xref: /freebsd/contrib/ntp/sntp/m4/ntp_problemtests.m4 (revision 0bf56da32d83fbd3b5db8d6c72cd1e7cc26fbc66)
1dnl ######################################################################
2dnl NTP_PROBLEM_TESTS
3dnl
4dnl Some platforms have problems building or running certain tests.
5dnl While we're in the initial phase of the deployment of the test
6dnl framework, sometimes we may need to disable these tests.
7dnl
8dnl This is where we do that.
9dnl
10AC_DEFUN([NTP_PROBLEM_TESTS], [
11case "$build" in
12 $host)	cross=0 ;;
13 *)	cross=1 ;;
14esac
15
16AC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
17AC_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)
26AC_MSG_RESULT([$ntp_ept])
27
28AC_MSG_CHECKING([if we can run test-ntp_restrict])
29ntp_test_ntp_restrict="no"
30case "$ntp_ept:$cross:$host" in
31 no:0:*-*-freebsd6.4) ;;
32 no:0:*-*-hpux11.23*) ;;
33 no:0:*-*-solaris*) ;;
34 *) ntp_test_ntp_restrict="yes" ;;
35esac
36case "$ntp_cv_gc_sections_runs" in
37  no) ntp_test_ntp_restrict="no" ;;
38  * ) ;;
39esac
40AC_MSG_RESULT([$ntp_test_ntp_restrict])
41AM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes])
42
43AC_MSG_CHECKING([if we can run test-ntp_scanner])
44ntp_test_ntp_scanner="no"
45case "$ntp_ept:$cross:$host" in
46 no:0:*-*-freebsd6.4) ;;
47 no:0:*-*-solaris*) ;;
48 *) ntp_test_ntp_scanner="yes" ;;
49esac
50case "$ntp_cv_gc_sections_runs" in
51  no) ntp_test_ntp_scanner="no" ;;
52  * ) ;;
53esac
54AC_MSG_RESULT([$ntp_test_ntp_scanner])
55AM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes])
56
57AC_MSG_CHECKING([if we can run test-ntp_signd])
58ntp_test_ntp_signd="no"
59case "$ntp_ept:$cross:$host" in
60 no:0:*-*-freebsd6.4) ;;
61 no:0:*-*-solaris*) ;;
62 *) ntp_test_ntp_signd="yes" ;;
63esac
64case "$ntp_cv_gc_sections_runs" in
65  no) ntp_test_ntp_signd="no" ;;
66  * ) ;;
67esac
68AC_MSG_RESULT([$ntp_test_ntp_signd])
69AM_CONDITIONAL([BUILD_TEST_NTP_SIGND], [test x$ntp_test_ntp_signd = xyes])
70
71])
72dnl ======================================================================
73