mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
fc7142d2a0
Added base support for unit tests (see http://check.sourceforge.net/ for details). Signed-off-by: Slava Zanko <slavazanko@gmail.com>
26 lines
670 B
Plaintext
26 lines
670 B
Plaintext
dnl @synopsis MC_UNIT_TESTS
|
|
dnl
|
|
dnl Check if unit tests enabled
|
|
dnl
|
|
dnl @author Slava Zanko <slavazanko@gmail.com>
|
|
dnl @version 2011-02-10
|
|
dnl @license GPL
|
|
dnl @copyright Free Software Foundation, Inc.
|
|
|
|
AC_DEFUN([MC_UNIT_TESTS],[
|
|
|
|
AC_ARG_ENABLE(
|
|
[tests],
|
|
AC_HELP_STRING([--enable-tests], [Enable unit tests (see http://check.sourceforge.net/)] )
|
|
)
|
|
|
|
if test x$enable_tests != xno; then
|
|
PKG_CHECK_MODULES(
|
|
CHECK,
|
|
[check >= 0.9.0],
|
|
[have_check=yes],
|
|
[AC_MSG_WARN(['Check' utility not found. Check your environment])])
|
|
fi
|
|
AM_CONDITIONAL(HAVE_TESTS, test x"$have_check" = "xyes")
|
|
])
|