COIN-OR::LEMON - Graph Library

Changeset 793:7c0ad6bd6a63 in lemon-main


Ignore:
Timestamp:
11/18/09 19:37:21 (15 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Optionally use valgrind when running tests + other build system fixes

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r752 r793  
    4545include doc/Makefile.am
    4646include tools/Makefile.am
     47include scripts/Makefile.am
    4748
    4849DIST_SUBDIRS = demo
  • configure.ac

    r744 r793  
    8484AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
    8585
     86dnl Support for running test cases using valgrind.
     87use_valgrind=no
     88AC_ARG_ENABLE([valgrind],
     89AS_HELP_STRING([--enable-valgrind], [use valgrind when running tests]),
     90              [use_valgrind=yes])
     91
     92if [[ "$use_valgrind" = "yes" ]]; then
     93  AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
     94
     95  if [[ "$HAVE_VALGRIND" = "no" ]]; then
     96    AC_MSG_ERROR([Valgrind not found in PATH.])
     97  fi
     98fi
     99AM_CONDITIONAL(USE_VALGRIND, [test "$use_valgrind" = "yes"])
     100
    86101dnl Checks for header files.
    87102AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
     
    129144echo
    130145echo Build additional tools........ : $enable_tools
     146echo Use valgrind for tests........ : $use_valgrind
    131147echo
    132148echo The packace will be installed in
  • scripts/bib2dox.py

    • Property exe set to *
  • test/Makefile.am

    r770 r793  
     1if USE_VALGRIND
     2TESTS_ENVIRONMENT=$(top_srcdir)/scripts/valgrind-wrapper.sh
     3endif
     4
    15EXTRA_DIST += \
    26        test/CMakeLists.txt
Note: See TracChangeset for help on using the changeset viewer.