1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-26 07:29:17 +02:00

mu: add memcheck script for valgrinding

This commit is contained in:
Dirk-Jan C. Binnema 2020-02-15 14:09:30 +02:00
parent c22eb434b7
commit a4a682e578
3 changed files with 15 additions and 0 deletions

6
.gitignore vendored
View File

@ -99,3 +99,9 @@ build-aux/
/perf.data
perf.data
perf.data.old
*vgdump
/lib/asan.log*
/man/mu-mfind.1
/mu/mu-memcheck
mu-*-coverage
mu*tar.xz

View File

@ -252,6 +252,7 @@ AC_SUBST(MU_DOC_DIR, "${prefix}/share/doc/mu")
AC_CONFIG_FILES([
Makefile
mu/Makefile
mu/mu-memcheck
lib/Makefile
lib/doxyfile
lib/utils/Makefile
@ -269,6 +270,8 @@ toys/mug/Makefile
man/Makefile
m4/Makefile
contrib/Makefile
],[
[chmod +x mu/mu-memcheck]
])
AC_OUTPUT

6
mu/mu-memcheck.in Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
libtool --mode=execute valgrind --tool=memcheck --leak-check=full --show-possibly-lost=no --leak-resolution=med --track-origins=yes --num-callers=20 --log-file='@abs_top_builddir@/mu-%p.vgdump' @abs_top_builddir@/mu/mu $@