Commit 58844635 authored by Pekka Pessi's avatar Pekka Pessi

Added EXPENSIVE_CHECKS.

darcs-hash:20051006124656-65a35-e6343c4a2ea1f2f98f0176c4d60ca2f07d43d8ba.gz
parent 1064d236
......@@ -17,6 +17,7 @@ AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
SAC_ENABLE_NDEBUG
SAC_ENABLE_EXPENSIVE_CHECKS
dnl checks for programs
dnl -------------------
......
......@@ -52,6 +52,17 @@ Those developers who need to often modify configure.ac, Makefile.am
and macro files, can enable maintainer mode with configure
option '--enable-maintainer-mode'.
-------------
Running tests
-------------
Sofia-SIP has quite complete suite of test cases. It is prudent to
run them while making changes and before committing them to revision
control system. However, running certain tests takes quite a long
time. Therefore, they are run only if the environment variable
EXPENSIVE_CHECKS has been set. EXPENSIVE_CHECKS is also set by the build
system if configure option '--enable-expensive-checks' has been used.
----------------
Code-tree layout
----------------
......
......@@ -423,6 +423,19 @@ AC_ARG_ENABLE(ndebug,
AM_CONDITIONAL(NDEBUG, test x$enable_ndebug = yes)
])
dnl ======================================================================
dnl SAC_ENABLE_EXPENSIVE_CHECKS
dnl ======================================================================
AC_DEFUN([SAC_ENABLE_EXPENSIVE_CHECKS],[
AC_ARG_ENABLE(expensive-checks,
[ --enable-expensive-checks run also expensive checks (disabled)],
, enable_expensive_checks=no)
if test $enable_expensive_checks != no; then
AC_SUBST([TESTS_ENVIRONMENT], [EXPENSIVE_CHECKS=1])
fi
AM_CONDITIONAL(EXPENSIVE_CHECKS, test x$enable_expensive_checks != no)
])
dnl ======================================================================
dnl SAC_GNU_SOURCE
dnl ======================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment