From: Ken Raeburn Date: Thu, 16 Mar 2006 01:29:26 +0000 (+0000) Subject: Quick hack to make it easy to run valgrind on many of our test cases. X-Git-Tag: krb5-1.5-alpha1~163 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b0eadb78af87eb93ab227cd73e361fc5e497a65;p=krb5.git Quick hack to make it easy to run valgrind on many of our test cases. Notably, though, the dejagnu tests will not include valgrind. * pre.in (MAYBE_VALGRIND): New variable. * shlib.conf (*-*-linux*): Use it in RUN_ENV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17742 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 481de61ad..b14a4ce06 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,8 @@ +2006-03-15 Ken Raeburn + + * pre.in (MAYBE_VALGRIND): New variable. + * shlib.conf (*-*-linux*): Use it in RUN_ENV. + 2006-03-11 Ken Raeburn * pre.in (KRB_INCLUDES): Drop include/krb5 directories. diff --git a/src/config/pre.in b/src/config/pre.in index 02aa75461..de7f6d455 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -546,7 +546,9 @@ PROFFLAGS=@PROFFLAGS@ # platform-dependent temporary files that should get cleaned up EXTRA_FILES=@EXTRA_FILES@ - +# The "env" at the end is because sometimes we add local environment +# variable settings with "@RUN_ENV@ KRB5_CONFIG=foo ..." +MAYBE_VALGRIND= # valgrind --tool=memcheck --log-file=$(BUILDTOP)/valgrind.out --trace-children=yes -v --leak-check=yes env ## ## end of pre.in diff --git a/src/config/shlib.conf b/src/config/shlib.conf index 744d7ea05..cc914577d 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -360,7 +360,7 @@ mips-*-netbsd*) RPATH_FLAG='-Wl,-rpath -Wl,' CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) $(LDFLAGS)' CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)' - RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;' + RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH; $(MAYBE_VALGRIND)' ## old version: # Linux libc does weird stuff at shlib link time, must be