source: trunk/m4/tests.m4 @ 704

Revision 672, 922 bytes checked in by dcarter, 3 years ago (diff)

see #129: Change default for test frame worker from enabled to disabled

Line 
1# Copyright (C) 2005-2008 David Carter <arm4@arm4.org>
2
3# This file is free software; as a special exception the author gives
4# unlimited permission to copy and/or distribute it, with or without
5# modifications, as long as this notice is preserved.
6#
7# This program is distributed in the hope that it will be useful, but
8# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
11# Macros to check for validation tests
12
13AC_DEFUN([ARM4_CHECK_TESTS],
14[
15  AC_MSG_CHECKING(for validation tests)
16  AC_ARG_ENABLE(tests,
17  [  --enable-tests          enable validation test framework],
18  [case "${enableval}" in
19     yes) tests=yes ;;
20     no)  tests=no ;;
21     *) AC_MSG_ERROR([bad value ${enableval} for --enable-tests]) ;;
22   esac],
23  [tests=no])
24  AC_MSG_RESULT($tests)
25  AM_CONDITIONAL([BUILD_TESTS], [test "$tests" = "yes" ])
26])
Note: See TracBrowser for help on using the repository browser.