This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to allow make check to use valgrind


Hi,

Attached is a patch which allows all of the tests to be ran with valgrind in order to check for memory problems. 

This was generated against today's CVS repository.

Basically, if you do

./configure --enable-valgrind-testing 

then, when you run make check valgrind is invoked.

The bad news: valgrind is reporting a fair few problems. I haven't had time to go through them all yet.

Best wishes,
Jonathan.

ps. Actually, even without that argument passed to configure, this patch runs the test programs with
libtool --mode=execute, which is probably the correct thing to do. It probably means we can get rid of all the  test_LDADD hacks in the Makefile.am files, but at the moment I haven't tried this.


? make-check-use-valgrind.patch
? make-check-use-valgrind2.patch
Index: Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/Makefile.am,v
retrieving revision 1.128
diff -u -r1.128 Makefile.am
--- Makefile.am	24 Dec 2004 13:55:10 -0000	1.128
+++ Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -33,6 +33,7 @@
 gsl_histogram_LDADD = libgsl.la cblas/libgslcblas.la
 
 check_SCRIPTS = test_gsl_histogram.sh
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = test_gsl_histogram.sh
 
 #bin_PROGRAMS = main dummy
Index: configure.ac
===================================================================
RCS file: /cvs/gsl/gsl/configure.ac,v
retrieving revision 1.23
diff -u -r1.23 configure.ac
--- configure.ac	22 Aug 2005 15:22:14 -0000	1.23
+++ configure.ac	27 Aug 2005 22:00:37 -0000
@@ -356,6 +356,25 @@
   AC_SUBST(HAVE_IEEE_DENORMALS)
 fi
 
+dnl Check for valgrind
+VALGRIND_ENVIRONMENT=""
+ac_enable_valgrind=no
+AC_ARG_ENABLE(valgrind-testing,
+     [  --enable-valgrind-testing     enable running of tests inside Valgrind],     [ ac_enable_valgrind=yes ], [ ac_enable_valgrind=no] )
+
+if test "x${ac_enable_valgrind}" = xyes ; then
+  if test "x${enable_shared}" = xyes ; then
+    VALGRIND_ENVIRONMENT="libtool --mode=execute "
+  fi
+
+  AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
+  if test "x$HAVE_VALGRIND" = xyes ; then
+    VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
+    AC_SUBST(VALGRIND_ENVIRONMENT)
+  fi
+fi
+
 dnl
 AC_CONFIG_FILES([gsl-config gsl.pc gsl_version.h gsl.spec gsl/Makefile test/Makefile err/Makefile sys/Makefile utils/Makefile const/Makefile min/Makefile multimin/Makefile ieee-utils/Makefile fft/Makefile specfunc/Makefile dht/Makefile fit/Makefile multifit/Makefile statistics/Makefile sum/Makefile roots/Makefile multiroots/Makefile ntuple/Makefile poly/Makefile qrng/Makefile rng/Makefile randist/Makefile siman/Makefile integration/Makefile interpolation/Makefile doc/Makefile block/Makefile vector/Makefile matrix/Makefile histogram/Makefile monte/Makefile ode-initval/Makefile cblas/Makefile blas/Makefile linalg/Makefile eigen/Makefile permutation/Makefile combination/Makefile sort/Makefile complex/Makefile diff/Makefile deriv/Makefile cheb/Makefile cdf/Makefile wavelet/Makefile Makefile])
 AC_OUTPUT
+
Index: blas/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/blas/Makefile.am,v
retrieving revision 1.28
diff -u -r1.28 Makefile.am
--- blas/Makefile.am	20 Mar 2001 16:19:42 -0000	1.28
+++ blas/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -7,6 +7,7 @@
 libgslblas_la_SOURCES = blas.c 
 
 #check_PROGRAMS = test
+#TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 #TESTS = test
 #test_LDADD = libgslblas.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la
 #test_SOURCES = test_blas_raw.c test_cases.c test_cases.h
Index: block/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/block/Makefile.am,v
retrieving revision 1.11
diff -u -r1.11 Makefile.am
--- block/Makefile.am	21 May 2005 14:12:11 -0000	1.11
+++ block/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 INCLUDES= -I$(top_builddir) -I$(top_srcdir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_LDADD = libgslblock.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
Index: cblas/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/cblas/Makefile.am,v
retrieving revision 1.12
diff -u -r1.12 Makefile.am
--- cblas/Makefile.am	29 Jul 2004 13:11:18 -0000	1.12
+++ cblas/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -10,6 +10,7 @@
 noinst_HEADERS = tests.c tests.h cblas.h source_asum_c.h source_asum_r.h source_axpy_c.h source_axpy_r.h source_copy_c.h source_copy_r.h source_dot_c.h source_dot_r.h source_gbmv_c.h source_gbmv_r.h source_gemm_c.h source_gemm_r.h source_gemv_c.h source_gemv_r.h source_ger.h source_gerc.h source_geru.h source_hbmv.h source_hemm.h source_hemv.h source_her.h source_her2.h source_her2k.h source_herk.h source_hpmv.h source_hpr.h source_hpr2.h source_iamax_c.h source_iamax_r.h source_nrm2_c.h source_nrm2_r.h source_rot.h source_rotg.h source_rotm.h source_rotmg.h source_sbmv.h source_scal_c.h source_scal_c_s.h source_scal_r.h source_spmv.h source_spr.h source_spr2.h source_swap_c.h source_swap_r.h source_symm_c.h source_symm_r.h source_symv.h source_syr.h source_syr2.h source_syr2k_c.h source_syr2k_r.h source_syrk_c.h source_syrk_r.h source_tbmv_c.h source_tbmv_r.h source_tbsv_c.h source_tbsv_r.h source_tpmv_c.h source_tpmv_r.h source_tpsv_c.h source_tpsv_r.h source_trmm_c.h source_trmm_r.h source_trmv_c.h source_trmv_r.h source_trsm_c.h source_trsm_r.h source_trsv_c.h source_trsv_r.h hypot.c
 
 check_PROGRAMS = test
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_LDADD = libgslcblas.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la
Index: cdf/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/cdf/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- cdf/Makefile.am	12 Nov 2004 17:19:27 -0000	1.4
+++ cdf/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -9,6 +9,7 @@
 
 noinst_HEADERS = beta_inc.c rat_eval.h test_auto.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: cheb/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/cheb/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- cheb/Makefile.am	29 Jul 2004 13:11:18 -0000	1.4
+++ cheb/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 libgslcheb_la_SOURCES =  deriv.c eval.c init.c integ.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: combination/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/combination/Makefile.am,v
retrieving revision 1.5
diff -u -r1.5 Makefile.am
--- combination/Makefile.am	29 Jul 2004 13:11:19 -0000	1.5
+++ combination/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 noinst_HEADERS = 
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: complex/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/complex/Makefile.am,v
retrieving revision 1.8
diff -u -r1.8 Makefile.am
--- complex/Makefile.am	29 Jul 2004 13:11:19 -0000	1.8
+++ complex/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -7,6 +7,7 @@
 
 libgslcomplex_la_SOURCES = math.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test
 
Index: const/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/const/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- const/Makefile.am	29 Jul 2004 13:11:19 -0000	1.7
+++ const/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -2,6 +2,7 @@
 
 INCLUDES= -I$(top_builddir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: deriv/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/deriv/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- deriv/Makefile.am	29 Jul 2004 13:11:19 -0000	1.2
+++ deriv/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 pkginclude_HEADERS = gsl_deriv.h
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test #demo
 
Index: dht/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/dht/Makefile.am,v
retrieving revision 1.12
diff -u -r1.12 Makefile.am
--- dht/Makefile.am	29 Jul 2004 13:11:19 -0000	1.12
+++ dht/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -4,6 +4,7 @@
 
 INCLUDES= -I$(top_builddir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: diff/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/diff/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- diff/Makefile.am	29 Jul 2004 13:11:20 -0000	1.7
+++ diff/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 pkginclude_HEADERS = gsl_diff.h
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test #demo
 
Index: eigen/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/eigen/Makefile.am,v
retrieving revision 1.17
diff -u -r1.17 Makefile.am
--- eigen/Makefile.am	29 Jul 2004 13:11:20 -0000	1.17
+++ eigen/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 noinst_HEADERS =  qrstep.c 
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_LDADD = libgsleigen.la  ../test/libgsltest.la ../linalg/libgsllinalg.la ../permutation/libgslpermutation.la ../blas/libgslblas.la ../cblas/libgslcblas.la ../matrix/libgslmatrix.la ../vector/libgslvector.la ../block/libgslblock.la  ../complex/libgslcomplex.la ../ieee-utils/libgslieeeutils.la ../sys/libgslsys.la ../err/libgslerr.la ../utils/libutils.la
Index: err/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/err/Makefile.am,v
retrieving revision 1.20
diff -u -r1.20 Makefile.am
--- err/Makefile.am	29 Jul 2004 13:11:20 -0000	1.20
+++ err/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 check_PROGRAMS = test
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c
Index: fft/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/fft/Makefile.am,v
retrieving revision 1.56
diff -u -r1.56 Makefile.am
--- fft/Makefile.am	21 May 2005 13:31:56 -0000	1.56
+++ fft/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 noinst_HEADERS = c_pass.h hc_pass.h real_pass.h signals.h signals_source.c c_main.c c_init.c c_pass_2.c c_pass_3.c c_pass_4.c c_pass_5.c c_pass_6.c c_pass_7.c c_pass_n.c c_radix2.c bitreverse.c bitreverse.h factorize.c factorize.h hc_init.c hc_pass_2.c hc_pass_3.c hc_pass_4.c hc_pass_5.c hc_pass_n.c hc_radix2.c hc_unpack.c real_init.c real_pass_2.c real_pass_3.c real_pass_4.c real_pass_5.c real_pass_n.c real_radix2.c real_unpack.c compare.h compare_source.c dft_source.c hc_main.c real_main.c test_complex_source.c test_real_source.c test_trap_source.c urand.c complex_internal.h
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: fit/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/fit/Makefile.am,v
retrieving revision 1.9
diff -u -r1.9 Makefile.am
--- fit/Makefile.am	29 Jul 2004 13:11:20 -0000	1.9
+++ fit/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 check_PROGRAMS = test #demo
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c
Index: histogram/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/histogram/Makefile.am,v
retrieving revision 1.36
diff -u -r1.36 Makefile.am
--- histogram/Makefile.am	29 Jul 2004 13:11:20 -0000	1.36
+++ histogram/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -9,6 +9,7 @@
 noinst_HEADERS = urand.c find.c find2d.c
 
 check_PROGRAMS = test
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 EXTRA_DIST = urand.c
Index: ieee-utils/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/ieee-utils/Makefile.am,v
retrieving revision 1.36
diff -u -r1.36 Makefile.am
--- ieee-utils/Makefile.am	29 Jul 2004 13:11:20 -0000	1.36
+++ ieee-utils/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 INCLUDES= -I$(top_builddir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test
 test_LDADD = libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
Index: integration/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/integration/Makefile.am,v
retrieving revision 1.41
diff -u -r1.41 Makefile.am
--- integration/Makefile.am	29 Jul 2004 13:11:20 -0000	1.41
+++ integration/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -7,6 +7,7 @@
 pkginclude_HEADERS = gsl_integration.h
 noinst_HEADERS = qpsrt.c qpsrt2.c qelg.c qc25c.c qc25s.c qc25f.c ptsort.c util.c err.c positivity.c append.c initialise.c set_initial.c reset.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test
 
Index: interpolation/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/interpolation/Makefile.am,v
retrieving revision 1.23
diff -u -r1.23 Makefile.am
--- interpolation/Makefile.am	29 Jul 2004 13:11:21 -0000	1.23
+++ interpolation/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -10,6 +10,7 @@
 
 INCLUDES= -I$(top_builddir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_LDADD = libgslinterpolation.la ../poly/libgslpoly.la ../linalg/libgsllinalg.la ../permutation/libgslpermutation.la ../blas/libgslblas.la ../matrix/libgslmatrix.la ../vector/libgslvector.la ../block/libgslblock.la ../complex/libgslcomplex.la ../cblas/libgslcblas.la ../ieee-utils/libgslieeeutils.la  ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
Index: linalg/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/linalg/Makefile.am,v
retrieving revision 1.35
diff -u -r1.35 Makefile.am
--- linalg/Makefile.am	13 Sep 2004 18:18:44 -0000	1.35
+++ linalg/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 noinst_HEADERS =  givens.c apply_givens.c svdstep.c tridiag.h 
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: matrix/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/matrix/Makefile.am,v
retrieving revision 1.40
diff -u -r1.40 Makefile.am
--- matrix/Makefile.am	29 Jul 2004 13:11:21 -0000	1.40
+++ matrix/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 INCLUDES= -I$(top_builddir) -I$(top_srcdir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS) 
 
 test_LDADD = libgslmatrix.la ../vector/libgslvector.la ../block/libgslblock.la ../ieee-utils/libgslieeeutils.la  ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
Index: min/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/min/Makefile.am,v
retrieving revision 1.14
diff -u -r1.14 Makefile.am
--- min/Makefile.am	29 Jul 2004 13:11:21 -0000	1.14
+++ min/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -10,6 +10,7 @@
 
 check_PROGRAMS = test
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c test_funcs.c test.h
Index: monte/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/monte/Makefile.am,v
retrieving revision 1.29
diff -u -r1.29 Makefile.am
--- monte/Makefile.am	29 Jul 2004 13:11:21 -0000	1.29
+++ monte/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 INCLUDES= -I$(top_builddir) -I$(top_srcdir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test #demo
Index: multifit/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/multifit/Makefile.am,v
retrieving revision 1.18
diff -u -r1.18 Makefile.am
--- multifit/Makefile.am	29 Jul 2004 13:11:21 -0000	1.18
+++ multifit/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -10,6 +10,7 @@
 
 check_PROGRAMS = test #demo
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c
Index: multimin/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/multimin/Makefile.am,v
retrieving revision 1.19
diff -u -r1.19 Makefile.am
--- multimin/Makefile.am	29 Jul 2004 13:11:21 -0000	1.19
+++ multimin/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -10,6 +10,7 @@
 
 check_PROGRAMS = test #demo
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS) 
 
 test_SOURCES = test.c test_funcs.c test_funcs.h
Index: multiroots/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/multiroots/Makefile.am,v
retrieving revision 1.25
diff -u -r1.25 Makefile.am
--- multiroots/Makefile.am	29 Jul 2004 13:11:21 -0000	1.25
+++ multiroots/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -12,6 +12,7 @@
 
 check_PROGRAMS = test
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c test_funcs.c test_funcs.h
Index: ntuple/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/ntuple/Makefile.am,v
retrieving revision 1.5
diff -u -r1.5 Makefile.am
--- ntuple/Makefile.am	29 Jul 2004 13:11:22 -0000	1.5
+++ ntuple/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 libgslntuple_la_SOURCES = ntuple.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test #demo demo1
Index: ode-initval/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/ode-initval/Makefile.am,v
retrieving revision 1.31
diff -u -r1.31 Makefile.am
--- ode-initval/Makefile.am	22 Jun 2005 14:53:54 -0000	1.31
+++ ode-initval/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -10,6 +10,7 @@
 
 check_PROGRAMS = test
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_LDADD = libgslodeiv.la ../linalg/libgsllinalg.la ../blas/libgslblas.la ../cblas/libgslcblas.la ../matrix/libgslmatrix.la ../permutation/libgslpermutation.la ../vector/libgslvector.la ../block/libgslblock.la ../complex/libgslcomplex.la ../ieee-utils/libgslieeeutils.la  ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la 
Index: permutation/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/permutation/Makefile.am,v
retrieving revision 1.16
diff -u -r1.16 Makefile.am
--- permutation/Makefile.am	29 Jul 2004 13:11:22 -0000	1.16
+++ permutation/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 noinst_HEADERS = permute_source.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: poly/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/poly/Makefile.am,v
retrieving revision 1.20
diff -u -r1.20 Makefile.am
--- poly/Makefile.am	21 May 2005 13:31:56 -0000	1.20
+++ poly/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 noinst_HEADERS = balance.c companion.c qr.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: qrng/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/qrng/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- qrng/Makefile.am	29 Jul 2004 13:11:22 -0000	1.7
+++ qrng/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 libgslqrng_la_SOURCES =	gsl_qrng.h qrng.c niederreiter-2.c sobol.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test
 
Index: randist/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/randist/Makefile.am,v
retrieving revision 1.46
diff -u -r1.46 Makefile.am
--- randist/Makefile.am	29 Jul 2004 13:11:22 -0000	1.46
+++ randist/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 libgslrandist_la_SOURCES = bernoulli.c beta.c bigauss.c binomial.c cauchy.c chisq.c dirichlet.c discrete.c erlang.c exponential.c exppow.c fdist.c flat.c gamma.c gauss.c gausstail.c geometric.c gumbel.c hyperg.c laplace.c levy.c logarithmic.c logistic.c lognormal.c multinomial.c nbinomial.c pareto.c pascal.c poisson.c rayleigh.c shuffle.c sphere.c tdist.c weibull.c landau.c binomial_tpe.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: rng/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/rng/Makefile.am,v
retrieving revision 1.46
diff -u -r1.46 Makefile.am
--- rng/Makefile.am	29 Jul 2004 13:11:22 -0000	1.46
+++ rng/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -13,6 +13,7 @@
 test_SOURCES = test.c
 test_LDADD = libgslrng.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 check_PROGRAMS = test
 
Index: roots/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/roots/Makefile.am,v
retrieving revision 1.44
diff -u -r1.44 Makefile.am
--- roots/Makefile.am	29 Jul 2004 13:11:22 -0000	1.44
+++ roots/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -12,6 +12,7 @@
 
 check_PROGRAMS = test
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c test_funcs.c test.h
Index: siman/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/siman/Makefile.am,v
retrieving revision 1.30
diff -u -r1.30 Makefile.am
--- siman/Makefile.am	22 Jun 2005 14:54:11 -0000	1.30
+++ siman/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -4,6 +4,7 @@
 noinst_PROGRAMS = siman_tsp
 noinst_LTLIBRARIES = libgslsiman.la
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 EXTRA_DIST = siman_test_driver.sh
 
Index: sort/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/sort/Makefile.am,v
retrieving revision 1.11
diff -u -r1.11 Makefile.am
--- sort/Makefile.am	29 Jul 2004 13:11:23 -0000	1.11
+++ sort/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -7,6 +7,7 @@
 libgslsort_la_SOURCES = sort.c sortind.c sortvec.c sortvecind.c subset.c subsetind.c
 noinst_HEADERS = sortvec_source.c sortvecind_source.c subset_source.c subsetind_source.c test_source.c test_heapsort.c 
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: specfunc/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/specfunc/Makefile.am,v
retrieving revision 1.98
diff -u -r1.98 Makefile.am
--- specfunc/Makefile.am	29 Jul 2004 13:11:23 -0000	1.98
+++ specfunc/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -8,6 +8,7 @@
 
 libgslspecfunc_la_SOURCES = airy.c airy_der.c airy_zero.c atanint.c bessel.c bessel.h bessel_I0.c bessel_I1.c bessel_In.c bessel_Inu.c bessel_J0.c bessel_J1.c bessel_Jn.c bessel_Jnu.c bessel_K0.c bessel_K1.c bessel_Kn.c bessel_Knu.c bessel_Y0.c bessel_Y1.c bessel_Yn.c bessel_Ynu.c bessel_amp_phase.c bessel_amp_phase.h bessel_i.c bessel_j.c bessel_k.c bessel_olver.c bessel_temme.c bessel_y.c bessel_zero.c bessel_sequence.c beta.c beta_inc.c clausen.c coulomb.c coupling.c coulomb_bound.c dawson.c debye.c dilog.c elementary.c ellint.c elljac.c erfc.c exp.c expint.c expint3.c fermi_dirac.c gegenbauer.c gamma.c gamma_inc.c hyperg_0F1.c hyperg_2F0.c hyperg_1F1.c hyperg_2F1.c hyperg_U.c hyperg.c laguerre.c lambert.c legendre_H3d.c legendre_Qn.c legendre_con.c legendre_poly.c log.c poch.c pow_int.c psi.c recurse.h result.c shint.c sinint.c synchrotron.c transport.c trig.c zeta.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: statistics/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/statistics/Makefile.am,v
retrieving revision 1.45
diff -u -r1.45 Makefile.am
--- statistics/Makefile.am	29 Jul 2004 13:11:23 -0000	1.45
+++ statistics/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -11,6 +11,7 @@
 noinst_HEADERS = mean_source.c variance_source.c covariance_source.c absdev_source.c skew_source.c kurtosis_source.c lag1_source.c p_variance_source.c minmax_source.c ttest_source.c median_source.c quantiles_source.c wmean_source.c wvariance_source.c wabsdev_source.c wskew_source.c wkurtosis_source.c test_float_source.c test_int_source.c
 
 check_PROGRAMS = test
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_SOURCES = test.c test_nist.c
Index: sum/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/sum/Makefile.am,v
retrieving revision 1.14
diff -u -r1.14 Makefile.am
--- sum/Makefile.am	29 Jul 2004 13:11:23 -0000	1.14
+++ sum/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -6,6 +6,7 @@
 
 libgslsum_la_SOURCES = levin_u.c levin_utrunc.c work_u.c work_utrunc.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = test
Index: sys/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/sys/Makefile.am,v
retrieving revision 1.20
diff -u -r1.20 Makefile.am
--- sys/Makefile.am	29 Jul 2004 13:11:23 -0000	1.20
+++ sys/Makefile.am	27 Aug 2005 22:00:37 -0000
@@ -7,6 +7,7 @@
 INCLUDES = -I$(top_builddir)
 
 check_PROGRAMS = test
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 test_SOURCES = test.c
 test_LDADD = libgslsys.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la libgslsys.la ../utils/libutils.la
Index: test/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/test/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- test/Makefile.am	27 Jul 2003 08:55:24 -0000	1.2
+++ test/Makefile.am	27 Aug 2005 22:00:38 -0000
@@ -5,6 +5,7 @@
 libgsltest_la_SOURCES = results.c
 
 #check_PROGRAMS = test
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 #TESTS = test
 #test_SOURCES = test_errnos.c
 #test_LDADD =  libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
Index: vector/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/vector/Makefile.am,v
retrieving revision 1.43
diff -u -r1.43 Makefile.am
--- vector/Makefile.am	13 Sep 2004 13:24:11 -0000	1.43
+++ vector/Makefile.am	27 Aug 2005 22:00:38 -0000
@@ -6,6 +6,7 @@
 
 INCLUDES= -I$(top_builddir) -I$(top_srcdir)
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = $(check_PROGRAMS)
 
 test_LDADD = libgslvector.la ../block/libgslblock.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la
Index: wavelet/Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/wavelet/Makefile.am,v
retrieving revision 1.1
diff -u -r1.1 Makefile.am
--- wavelet/Makefile.am	23 Jul 2004 16:55:13 -0000	1.1
+++ wavelet/Makefile.am	27 Aug 2005 22:00:38 -0000
@@ -6,6 +6,7 @@
 
 libgslwavelet_la_SOURCES = dwt.c wavelet.c bspline.c daubechies.c haar.c
 
+TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
 TESTS = test
 
 check_PROGRAMS = test

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]