xref: /freebsd/contrib/ntp/sntp/m4/sntp_problemtests.m4 (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1dnl ######################################################################
2dnl SNTP_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([SNTP_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    [sntp_ept=$enableval],
24    [sntp_ept=yes]
25)
26AC_MSG_RESULT([$sntp_ept])
27
28AC_MSG_CHECKING([if we can run test-kodDatabase])
29sntp_test_kodDatabase="no"
30case "$sntp_ept:$cross:$host" in
31 no:0:*-apple-darwin12.6.0) ;;
32 *) sntp_test_kodDatabase="yes" ;;
33esac
34AC_MSG_RESULT([$sntp_test_kodDatabase])
35AM_CONDITIONAL([BUILD_TEST_KODDATABASE], [test x$sntp_test_kodDatabase = xyes])
36
37AC_MSG_CHECKING([if we can run test-kodFile])
38sntp_test_kodFile="no"
39case "$sntp_ept:$cross:$host" in
40 no:0:*-apple-darwin12.6.0) ;;
41 *) sntp_test_kodFile="yes" ;;
42esac
43AC_MSG_RESULT([$sntp_test_kodFile])
44AM_CONDITIONAL([BUILD_TEST_KODFILE], [test x$sntp_test_kodFile = xyes])
45
46])
47dnl ======================================================================
48