lua: valgrinding Lua code doesn't work.

See comment.
This commit is contained in:
Richard W.M. Jones
2012-11-20 18:31:45 +00:00
parent 1e321b883b
commit 12905a9bbb

View File

@@ -50,7 +50,7 @@ guestfs.so: libluaguestfs.la
ln -sf .libs/libluaguestfs.so $@
# Tests.
TESTS_ENVIRONMENT = LC_ALL=C $(top_builddir)/run --test
TESTS_ENVIRONMENT = LC_ALL=C $(top_builddir)/run --test $(VG)
TESTS = \
run-bindtests \
tests/010-load.lua \
@@ -84,6 +84,15 @@ EXTRA_DIST += \
tests/400-progress.lua \
tests/900-errors.lua
# Run the tests under valgrind.
# This doesn't work. Because Lua dlcloses the library on exit, the
# stack traces contain no useful information. The only way to make
# this work would be to patch Lua or fix valgrind.
# https://bugs.kde.org/show_bug.cgi?id=79362
# http://valgrind.org/docs/manual/faq.html#faq.unhelpful
#check-valgrind:
# $(MAKE) VG="@VG@" check
# Custom install rule.
install-data-hook:
mkdir -p $(DESTDIR)$(lualibdir)